Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lets go #703

Merged
merged 9 commits into from
Apr 6, 2024
Merged

Lets go #703

merged 9 commits into from
Apr 6, 2024

Conversation

joeldrapper
Copy link
Collaborator

@joeldrapper joeldrapper commented Apr 6, 2024

Closes #687
Closes #632

@joeldrapper joeldrapper marked this pull request as ready for review April 6, 2024 01:56
Comment on lines +17 to +18
- "truffleruby-23.1"
- "truffleruby-24.0"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are 3.2 and 3.3 compatible.

to_s
end
end
SUPPORTS_FIBER_STORAGE = RUBY_ENGINE == "ruby"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TruffleRuby doesn’t support Fiber#[] at the moment.

Comment on lines -102 to -108
if deprecated
deprecation = <<~RUBY
Kernel.warn "#{deprecated}"
RUBY
else
deprecation = ""
end
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not going to need to use this for a while, so may as well get rid of it.

@@ -7,7 +7,7 @@ class HTML < SGML
autoload :VoidElements, "phlex/html/void_elements"

# A list of HTML attributes that have the potential to execute unsafe JavaScript.
EVENT_ATTRIBUTES = %w[onabort onafterprint onbeforeprint onbeforeunload onblur oncanplay oncanplaythrough onchange onclick oncontextmenu oncopy oncuechange oncut ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onhashchange oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onmessage onmousedown onmousemove onmouseout onmouseover onmouseup onmousewheel onoffline ononline onpagehide onpageshow onpaste onpause onplay onplaying onpopstate onprogress onratechange onreset onresize onscroll onsearch onseeked onseeking onselect onstalled onstorage onsubmit onsuspend ontimeupdate ontoggle onunload onvolumechange onwaiting onwheel].to_h { [_1, true] }.freeze
EVENT_ATTRIBUTES = Set.new(%w[onabort onafterprint onbeforeprint onbeforeunload onblur oncanplay oncanplaythrough onchange onclick oncontextmenu oncopy oncuechange oncut ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onhashchange oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onmessage onmousedown onmousemove onmouseout onmouseover onmouseup onmousewheel onoffline ononline onpagehide onpageshow onpaste onpause onplay onplaying onpopstate onprogress onratechange onreset onresize onscroll onsearch onseeked onseeking onselect onstalled onstorage onsubmit onsuspend ontimeupdate ontoggle onunload onvolumechange onwaiting onwheel]).freeze
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a Set here seems to be just as fast as a Hash of true values.

register_element :template_tag, tag: "template"
register_element :template
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally 😅

@joeldrapper joeldrapper merged commit 31553f4 into main Apr 6, 2024
11 checks passed
@joeldrapper joeldrapper deleted the lets-go branch April 6, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Dropping support for Ruby < 3.2 in 2.0 Remove the <param> element
1 participant