Skip to content

feat: Parsec was behind Netweir's parser by six changes - #70

Merged
jamesconwaydev merged 1 commit into
mainfrom
conformance-counts
Nov 15, 2026
Merged

jamesconwaydev merged 1 commit into
mainfrom
conformance-counts

Conversation

@jamesconwaydev

@jamesconwaydev jamesconwaydev commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Six of Netweir's parser changes hadn't reached Parsec, three of them roadmap items: a depth limit (#10), :dir() (#14) and :target/:local-link (#16). And the conformance counts only existed in stderr and in prose on the wiki (#4).

Change

Tests

  • cargo test --workspace: all pass. The JSON written locally: tokenizer 7,042 passed, 0 failed, 4 skipped (html5lib-tests at c5495c5, after build(deps): bump crates/parsec/tests/html5lib-tests from c777c40 to c5495c5 #66); tree construction 3,898 passed, 0 failed, 6 skipped.
  • cargo clippy --workspace --all-targets -- -D warnings, cargo fmt --all --check, scripts/check-headers.sh and scripts/sync-from-netweir.sh --check ../netweir pass.

Fixes #4
Fixes #10
Fixes #14
Fixes #16

Sync crates/parsec from Netweir 7fac5f7: a maximum tree depth (#10),
:dir() (#14), :target and :local-link given the page's URL (#16),
append and insert_before refusing document and fragment nodes, a
created SVG element's lower_name, and conformance counts written as
JSON. CI now writes those counts on every test run, puts Linux's in the
run summary and uploads them as the conformance artifact (#4).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Match :target and :local-link given a URL Match :lang() and :dir() A depth limit alongside the time budget Publish conformance counts from CI

1 participant