Repository navigation
feat: output was HTML only, with no pretty or html5lib format - #93
Merged
Merged
Conversation
Syncs Netweir 8513cf3 (netweir/netweir#330): SerializeOptions with pretty printing that keeps the tree, the html5lib tree-dump format, and html5lib's serializer options (quote_char, minimize_boolean_attributes, omit_optional_tags, inject_meta_charset and the rest), with the html5lib serializer suite in cargo test: 229 passed, 1 skipped. The sync script listed its test files one by one, so the new tests/serializer.rs wasn't copied. It now takes every test and its data but the html5lib-tests submodule and the pinned tree-construction files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Parsec serialized
innerHTML,outerHTMLand text only (#9), where Lexbor also has a pretty-printer and the html5lib tree format.The sync script also named each synced test file by hand, so a new test in Netweir, such as
tests/serializer.rs, didn't come across.Change
SerializeOptionsandDocument::serialize_with/inner_html_with.pretty: indents without changing what the page parses to. Every tree-construction case that round-trips, and the 13 bench pages, parse back to the same tree.html5test: the| <html>dump the tree-construction tests use.tests/tree.rsnow uses it.scripts/sync-from-netweir.shtakes every entry undertests/excepthtml5lib-testsandtree-construction, which stay Parsec's own.Closes #9
Tests
</p>left out before<datagrid>, which would change the tree.cargo test --workspace: 193 test groups, 0 failed.sync-from-netweir.sh --checkpasses, and so doshellcheckandscripts/check-headers.sh.