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

Handle escaping < in edge cases where it doesn't start a tag (#544) #667

Merged
merged 1 commit into from Jun 2, 2022
Merged

Handle escaping < in edge cases where it doesn't start a tag (#544) #667

merged 1 commit into from Jun 2, 2022

Conversation

willkg
Copy link
Member

@willkg willkg commented Jun 1, 2022

The html5lib tokenizer kicks up a parse error token when there's a <
that isn't the start of a tag. This adds some handling for that case and
treats the < plus whatever is after it as characters data.

Fixes #544.

@willkg willkg requested a review from g-k June 1, 2022 17:26
@willkg
Copy link
Member Author

willkg commented Jun 1, 2022

@g-k Can you skim this, please?

The html5lib tokenizer kicks up a parse error token when there's a <
that isn't the start of a tag. This adds some handling for that case and
treats the < plus whatever is after it as characters data.
@willkg willkg merged commit ed06d4e into mozilla:main Jun 2, 2022
@willkg
Copy link
Member Author

willkg commented Jun 2, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants