Skip to content

Restore the tree construction tests used by the feedback tests. - #347

Merged
kornelski merged 1 commit into
mainfrom
restore-tree-construction-tests
Oct 28, 2026
Merged

kornelski merged 1 commit into
mainfrom
restore-tree-construction-tests

Conversation

@orium

@orium orium commented Oct 28, 2026

Copy link
Copy Markdown
Member

The html5lib-tests submodule update in f3093c9 moved to a revision without the tree-construction
directory, since those tests are now maintained in web-platform-tests (WPT). Because
for_each_test_file() accepted an empty glob, the feedback tests silently went from 1,809 inputs
to the 31 in tests/data/regression/, and CI stayed green.

We now keep a copy of the tests in tests/data/tree-construction/, taken from html5lib-tests
9329e64 (the last revision before they were removed), and for_each_test_file() fails when nothing
matches.

The current WPT version of these tests has five inputs with CDATA sections inside SVG/MathML
integration points (e.g. <svg><title><![CDATA[x]]>) that we tokenize as bogus comments, so
switching to it needs a fix first.

The html5lib-tests submodule update in f3093c9 moved to a revision without the `tree-construction`
directory, since those tests are now maintained in web-platform-tests (WPT). Because
`for_each_test_file()` accepted an empty glob, the feedback tests silently went from 1,809 inputs
to the 31 in `tests/data/regression/`, and CI stayed green.

We now keep a copy of the tests in `tests/data/tree-construction/`, taken from html5lib-tests
9329e64 (the last revision before they were removed), and `for_each_test_file()` fails when nothing
matches.

The current WPT version of these tests has five inputs with CDATA sections inside SVG/MathML
integration points (e.g. `<svg><title><![CDATA[x]]>`) that we tokenize as bogus comments, so
switching to it needs a fix first.
@orium
orium requested review from a team, Noah-Kennedy and jasnell as code owners October 28, 2026 14:06
@kornelski
kornelski merged commit e54f277 into main Oct 28, 2026
6 checks passed
@kornelski
kornelski deleted the restore-tree-construction-tests branch October 28, 2026 14:48
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.

2 participants