Skip to content

Conversation

@kudoas
Copy link
Contributor

@kudoas kudoas commented Dec 10, 2025

This pull request fixes #956

HTML tags are handled case-insensitively across open/close matching, foreign content detection for script/style and SVG contexts, and the tests updated to cover mixed-case tags to ensure parsing.

Let me know if you see any improvements or have any suggestions!

@kudoas kudoas marked this pull request as ready for review December 10, 2025 16:10
@kudoas kudoas changed the title Parser: HTML tag treat as case-insensitive Dec 10, 2025
@kudoas kudoas marked this pull request as draft December 11, 2025 08:52
@kudoas kudoas force-pushed the parse-case-insensitve-html-tag branch from bbf9a1c to 77cf075 Compare December 11, 2025 09:17
@kudoas kudoas marked this pull request as ready for review December 11, 2025 09:18
Copy link
Owner

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

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

Awesome, thank you so much for this fix, @kudoas! 🙏🏼

Also, thank you for moving the new test cases to the end of the test files, that reduces the pull request diff a lot! 🙌🏼

@marcoroth marcoroth merged commit e93f0db into marcoroth:main Dec 11, 2025
24 checks passed
@kudoas kudoas deleted the parse-case-insensitve-html-tag branch December 11, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants