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

html: Add injections for style attributes and event handler attributes #23659

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MrSubidubi
Copy link
Contributor

Closes #23653

Before:
before

After:
after

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 25, 2025
(#set! injection.language "css"))

(attribute
(attribute_name) @_attribute_name (#match? @_attribute_name "^on[a-z]+$")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided on a generic pattern given that the list of supported event handler attributes is quite large and custom events are theoretically also supported.

If wanted, I can add a more specific pattern or, given that the use of event handler content attributes is discouraged, I can also revert the change.

@MrSubidubi MrSubidubi changed the title html: Add injections for styleattributes and event handler attributes html: Add injections for style attributes and event handler attributes Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

highlight html style attribute
1 participant