Skip to content

Conversation

@RobinDev
Copy link

The HTML parser treated attribute names in a case-sensitive manner, which is not compliant with the HTML specifications.

This behavior caused incorrect escaping of tags containing attributes with uppercase letters, such as the viewBox attribute in SVG tags.

This change updates the PARTIAL_ATTRIBUTENAME regular expression to accept both uppercase and lowercase letters, ensuring that HTML attributes are correctly recognized regardless of their case.

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.

1 participant