Compliance cases
These are the 6,835 inputs a submission must decode. Each output must match the expected text byte for byte. You can run the suite without reading it, or open any case to see its input and expected output.
Run the full compliance suite locally. Replace your-component.wasm
with your compiled component.
Download the suite
curl -fLo unescape_html.comply.wasm https://calculated.world/comply/unescape_html.wasm
qipx comply your-component.wasm --with unescape_html.comply.wasm
All 6,835 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 002500 | html5lib/namedEntities/2093 html5lib-tests |
&gesdotol
|
9 B | |
| 002501 | html5lib/namedEntities/2094 html5lib-tests |
⪄
|
10 B | |
| 002502 | html5lib/namedEntities/2095 html5lib-tests |
&gesl
|
5 B | |
| 002503 | html5lib/namedEntities/2096 html5lib-tests |
⋛︀
|
6 B | |
| 002504 | html5lib/namedEntities/2097 html5lib-tests |
&gesles
|
7 B | |
| 002505 | html5lib/namedEntities/2098 html5lib-tests |
⪔
|
8 B | |
| 002506 | html5lib/namedEntities/2099 html5lib-tests |
&gfr
|
4 B | |
| 002507 | html5lib/namedEntities/2100 html5lib-tests |
𝔤
|
5 B | |
| 002508 | html5lib/namedEntities/2101 html5lib-tests |
&gg
|
3 B | |
| 002509 | html5lib/namedEntities/2102 html5lib-tests |
≫
|
4 B | |
| 002510 | html5lib/namedEntities/2103 html5lib-tests |
&ggg
|
4 B | |
| 002511 | html5lib/namedEntities/2104 html5lib-tests |
⋙
|
5 B | |
| 002512 | html5lib/namedEntities/2105 html5lib-tests |
&gimel
|
6 B | |
| 002513 | html5lib/namedEntities/2106 html5lib-tests |
ℷ
|
7 B | |
| 002514 | html5lib/namedEntities/2107 html5lib-tests |
&gjcy
|
5 B | |
| 002515 | html5lib/namedEntities/2108 html5lib-tests |
ѓ
|
6 B | |
| 002516 | html5lib/namedEntities/2109 html5lib-tests |
&gl
|
3 B | |
| 002517 | html5lib/namedEntities/2110 html5lib-tests |
≷
|
4 B | |
| 002518 | html5lib/namedEntities/2111 html5lib-tests |
&glE
|
4 B | |
| 002519 | html5lib/namedEntities/2112 html5lib-tests |
⪒
|
5 B | |
| 002520 | html5lib/namedEntities/2113 html5lib-tests |
&gla
|
4 B | |
| 002521 | html5lib/namedEntities/2114 html5lib-tests |
⪥
|
5 B | |
| 002522 | html5lib/namedEntities/2115 html5lib-tests |
&glj
|
4 B | |
| 002523 | html5lib/namedEntities/2116 html5lib-tests |
⪤
|
5 B | |
| 002524 | html5lib/namedEntities/2117 html5lib-tests |
&gnE
|
4 B | |
| 002525 | html5lib/namedEntities/2118 html5lib-tests |
≩
|
5 B | |
| 002526 | html5lib/namedEntities/2119 html5lib-tests |
&gnap
|
5 B | |
| 002527 | html5lib/namedEntities/2120 html5lib-tests |
⪊
|
6 B | |
| 002528 | html5lib/namedEntities/2121 html5lib-tests |
&gnapprox
|
9 B | |
| 002529 | html5lib/namedEntities/2122 html5lib-tests |
⪊
|
10 B | |
| 002530 | html5lib/namedEntities/2123 html5lib-tests |
&gne
|
4 B | |
| 002531 | html5lib/namedEntities/2124 html5lib-tests |
⪈
|
5 B | |
| 002532 | html5lib/namedEntities/2125 html5lib-tests |
&gneq
|
5 B | |
| 002533 | html5lib/namedEntities/2126 html5lib-tests |
⪈
|
6 B | |
| 002534 | html5lib/namedEntities/2127 html5lib-tests |
&gneqq
|
6 B | |
| 002535 | html5lib/namedEntities/2128 html5lib-tests |
≩
|
7 B | |
| 002536 | html5lib/namedEntities/2129 html5lib-tests |
&gnsim
|
6 B | |
| 002537 | html5lib/namedEntities/2130 html5lib-tests |
⋧
|
7 B | |
| 002538 | html5lib/namedEntities/2131 html5lib-tests |
&gopf
|
5 B | |
| 002539 | html5lib/namedEntities/2132 html5lib-tests |
𝕘
|
6 B | |
| 002540 | html5lib/namedEntities/2133 html5lib-tests |
&grave
|
6 B | |
| 002541 | html5lib/namedEntities/2134 html5lib-tests |
`
|
7 B | |
| 002542 | html5lib/namedEntities/2135 html5lib-tests |
&gscr
|
5 B | |
| 002543 | html5lib/namedEntities/2136 html5lib-tests |
ℊ
|
6 B | |
| 002544 | html5lib/namedEntities/2137 html5lib-tests |
&gsim
|
5 B | |
| 002545 | html5lib/namedEntities/2138 html5lib-tests |
≳
|
6 B | |
| 002546 | html5lib/namedEntities/2139 html5lib-tests |
&gsime
|
6 B | |
| 002547 | html5lib/namedEntities/2140 html5lib-tests |
⪎
|
7 B | |
| 002548 | html5lib/namedEntities/2141 html5lib-tests |
&gsiml
|
6 B | |
| 002549 | html5lib/namedEntities/2142 html5lib-tests |
⪐
|
7 B |
Where these rules come from
Expected outputs come from Python’s html.unescape, changed to keep references to controls and noncharacters the way the WHATWG tokenizer does.
- Named character references — the table of 2,231 names, including the legacy ones that work without a semicolon
- Numeric character reference end state — the Windows-1252 remapping and the rules for 0, surrogates and out-of-range numbers
- html5lib-tests tokenizer tests — the source of the 4,617 html5lib cases