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

fix: html5 encoding detection case insensitive re: meta tag #2693

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

flavorjones
Copy link
Member

What problem is this PR intended to solve?

I found an interesting test failure while playing with upgrading Mastodon to use the HTML5 parser that was caused by case-sensitivity in the HTML5 encoding detection.

Have you included adequate test coverage?

Yes.

Does this change affect the behavior of either the C or the Java implementations?

N/A

@flavorjones flavorjones added this to the v1.14.0 milestone Nov 14, 2022
@flavorjones flavorjones force-pushed the flavorjones-html5-meta-encoding-detection branch from 07b5101 to 6636e86 Compare November 14, 2022 02:46
Copy link
Contributor

@stevecheckoway stevecheckoway left a comment

Choose a reason for hiding this comment

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

This change seems good.

The implementation of the prescan algorithm is incomplete though.

@flavorjones
Copy link
Member Author

The implementation of the prescan algorithm is incomplete

I added a note to #2513 so this won't get forgotten.

@flavorjones flavorjones merged commit 4efac46 into main Nov 14, 2022
@flavorjones flavorjones deleted the flavorjones-html5-meta-encoding-detection branch November 14, 2022 14:12
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