Repository navigation
feat: Parsec was behind Netweir's parser by eleven changes - #65
Merged
Merged
Conversation
Syncs crates/parsec from Netweir 6dec70c: :lang(), :valid and :invalid with pattern, parse_fragment's budget, Document kept Send and Sync, and the set_attr and serializer fixes. tests/threads.rs is synced now too, and url joins the dependencies, for type=url in :valid.
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
crates/parsecwas synced from Netweir at90fcd03. Eleven parser changes have landed in Netweir'scrates/netweir-htmlsince then.Change
This syncs from Netweir
6dec70cwithscripts/sync-from-netweir.sh ../scraper. It brings in::validand:invalid, includingpattern(feat(css): :valid and :invalid weren't supported netweir/netweir#288, feat(css): :valid and :invalid ignored pattern netweir/netweir#294):lang()(feat(css): :lang() wasn't supported netweir/netweir#281)parse_fragment, so it no longer panics (feat(html): parse_fragment had no budget or size check without a panic netweir/netweir#271)DocumentandSelectorListstaySendandSync, withtests/threads.rsandexamples/parallel.rs(feat(html): nothing kept Document Send and Sync netweir/netweir#290, for Documents that are Send and Sync, checked at compile time #11)set_attr(fix(html): set_attr lowercased SVG and MathML attribute names netweir/netweir#274, fix(html): set_attr added a second xlink:href instead of replacing it netweir/netweir#276), renaming to or fromtemplate(fix(html): rename to or from template kept the wrong contents netweir/netweir#278) andhtml_alone(fix(html): html_alone of the document wrote the whole page netweir/netweir#270)Two changes go beyond the copy:
tests/threads.rsis added to the files the sync copies, since it wasn't on the list.urlis added to the dependencies::validuses it on an<input type=url>.cargo deny checkpasses with it.Tests
scripts/check-headers.shandscripts/sync-from-netweir.sh --check ../scraperpass. So docargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo testandcargo deny check.