Commit 6ad2758
committed
test(ie-html): add html5lib tree construction conformance suite — 42.2% pass rate #60
Vendor html5lib-tests tree construction fixtures (56 .dat files, 1578
non-scripted non-fragment tests) with MIT LICENSE attribution.
Conformance harness:
- Parses custom .dat format (#data/#errors/#document sections)
- Skips script-on and fragment tests (not supported)
- Serializes DOM to html5lib expected format with DOCTYPE output
- Per-file and aggregate reporting
Tree builder fixes:
- Initial mode now stores DOCTYPE name/public_id/system_id
- ParseResult exposes doctype fields for serialization
- Recursion guard (depth 20) prevents stack overflow from
reprocessing loops in table modes
42.2% pass rate (666/1578). Main failure categories:
- Table structure edge cases and foster parenting precision
- Adoption agency corner cases
- Missing: foreign content (SVG/MathML), ruby, button scope
- Missing: InFrameset, template document fragment1 parent 7d93227 commit 6ad2758
59 files changed
Lines changed: 24690 additions & 2 deletions
File tree
- crates/ie-html
- src
- tests
- html5lib-tree
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
| |||
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
65 | 79 | | |
66 | 80 | | |
67 | 81 | | |
| |||
80 | 94 | | |
81 | 95 | | |
82 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
83 | 103 | | |
84 | 104 | | |
85 | 105 | | |
| |||
105 | 125 | | |
106 | 126 | | |
107 | 127 | | |
| 128 | + | |
108 | 129 | | |
109 | 130 | | |
110 | 131 | | |
| |||
823 | 844 | | |
824 | 845 | | |
825 | 846 | | |
826 | | - | |
827 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
828 | 857 | | |
829 | 858 | | |
830 | 859 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments