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

feat: Nokogiri::HTML5::Builder #3119

Merged
merged 1 commit into from
Feb 3, 2024
Merged

Conversation

flavorjones
Copy link
Member

What problem is this PR intended to solve?

Provide a Builder class that generates HTML5 documents.

The construction behavior is identical to HTML4::Builder, but HTML5 documents serialize according to the HTML5 standard (see xml_node.c:output_node()).

Have you included adequate test coverage?

Added tests are a copied-and-modified version of the HTML4::Builder tests.

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

The Java implementation still does not support HTML5.

which behaves like HTML4::Builder but returns an HTML5::Document
@flavorjones flavorjones merged commit 91daaa7 into main Feb 3, 2024
128 checks passed
@flavorjones flavorjones deleted the flavorjones-html5-builder branch February 3, 2024 19:27
@flavorjones flavorjones added this to the v1.17.0 milestone Feb 6, 2024
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.

None yet

1 participant