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

Add support for custom attributes containing hyphens #57

Merged
merged 1 commit into from
May 15, 2024

Conversation

jilouc
Copy link
Contributor

@jilouc jilouc commented May 15, 2024

If a HTML tag has an attribute containing one or more -, it is currently ignored.
Hyphens are often used for custom attributes, and our CMS inserts such attributes in tags, such as:

<a href="https://example.org" custom-attribute="true">Link</a>

The proposed changes allow hyphens in the tag attributes regex so they are not ignored anymore.

@zhgchgli0718 zhgchgli0718 merged commit 3de4024 into ZhgChgLi:main May 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants