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: fragment context parsing #2736

Merged
merged 3 commits into from
Dec 21, 2022
Merged

Conversation

flavorjones
Copy link
Member

What problem is this PR intended to solve?

Fixes #2646.

This PR introduces:

  • HTML5::QuirksMode, an enum
  • HTML5::Document#quirks_mode
  • HTML5::DocumentFragment#quirks_mode

It also changes the behavior of the fragment parser to use the parent document's quirks mode, and default to NO_QUIRKS in edge cases.

Have you included adequate test coverage?

Yes!

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

The HTML5 parser is only supported in CRuby.

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.

LGTM

@flavorjones flavorjones force-pushed the 2646-fix-fragment-context-parsing branch from 220d6b4 to deaa9c2 Compare December 20, 2022 21:27
@flavorjones flavorjones merged commit cc5caf7 into main Dec 21, 2022
@flavorjones flavorjones deleted the 2646-fix-fragment-context-parsing branch December 21, 2022 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants