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 |
|---|---|---|---|---|
| 002450 | html5lib/namedEntities/2043 html5lib-tests |
&frac56
|
7 B | |
| 002451 | html5lib/namedEntities/2044 html5lib-tests |
⅚
|
8 B | |
| 002452 | html5lib/namedEntities/2045 html5lib-tests |
&frac58
|
7 B | |
| 002453 | html5lib/namedEntities/2046 html5lib-tests |
⅝
|
8 B | |
| 002454 | html5lib/namedEntities/2047 html5lib-tests |
&frac78
|
7 B | |
| 002455 | html5lib/namedEntities/2048 html5lib-tests |
⅞
|
8 B | |
| 002456 | html5lib/namedEntities/2049 html5lib-tests |
&frasl
|
6 B | |
| 002457 | html5lib/namedEntities/2050 html5lib-tests |
⁄
|
7 B | |
| 002458 | html5lib/namedEntities/2051 html5lib-tests |
&frown
|
6 B | |
| 002459 | html5lib/namedEntities/2052 html5lib-tests |
⌢
|
7 B | |
| 002460 | html5lib/namedEntities/2053 html5lib-tests |
&fscr
|
5 B | |
| 002461 | html5lib/namedEntities/2054 html5lib-tests |
𝒻
|
6 B | |
| 002462 | html5lib/namedEntities/2055 html5lib-tests |
&gE
|
3 B | |
| 002463 | html5lib/namedEntities/2056 html5lib-tests |
≧
|
4 B | |
| 002464 | html5lib/namedEntities/2057 html5lib-tests |
&gEl
|
4 B | |
| 002465 | html5lib/namedEntities/2058 html5lib-tests |
⪌
|
5 B | |
| 002466 | html5lib/namedEntities/2059 html5lib-tests |
&gacute
|
7 B | |
| 002467 | html5lib/namedEntities/2060 html5lib-tests |
ǵ
|
8 B | |
| 002468 | html5lib/namedEntities/2061 html5lib-tests |
&gamma
|
6 B | |
| 002469 | html5lib/namedEntities/2062 html5lib-tests |
γ
|
7 B | |
| 002470 | html5lib/namedEntities/2063 html5lib-tests |
&gammad
|
7 B | |
| 002471 | html5lib/namedEntities/2064 html5lib-tests |
ϝ
|
8 B | |
| 002472 | html5lib/namedEntities/2065 html5lib-tests |
&gap
|
4 B | |
| 002473 | html5lib/namedEntities/2066 html5lib-tests |
⪆
|
5 B | |
| 002474 | html5lib/namedEntities/2067 html5lib-tests |
&gbreve
|
7 B | |
| 002475 | html5lib/namedEntities/2068 html5lib-tests |
ğ
|
8 B | |
| 002476 | html5lib/namedEntities/2069 html5lib-tests |
&gcirc
|
6 B | |
| 002477 | html5lib/namedEntities/2070 html5lib-tests |
ĝ
|
7 B | |
| 002478 | html5lib/namedEntities/2071 html5lib-tests |
&gcy
|
4 B | |
| 002479 | html5lib/namedEntities/2072 html5lib-tests |
г
|
5 B | |
| 002480 | html5lib/namedEntities/2073 html5lib-tests |
&gdot
|
5 B | |
| 002481 | html5lib/namedEntities/2074 html5lib-tests |
ġ
|
6 B | |
| 002482 | html5lib/namedEntities/2075 html5lib-tests |
&ge
|
3 B | |
| 002483 | html5lib/namedEntities/2076 html5lib-tests |
≥
|
4 B | |
| 002484 | html5lib/namedEntities/2077 html5lib-tests |
&gel
|
4 B | |
| 002485 | html5lib/namedEntities/2078 html5lib-tests |
⋛
|
5 B | |
| 002486 | html5lib/namedEntities/2079 html5lib-tests |
&geq
|
4 B | |
| 002487 | html5lib/namedEntities/2080 html5lib-tests |
≥
|
5 B | |
| 002488 | html5lib/namedEntities/2081 html5lib-tests |
&geqq
|
5 B | |
| 002489 | html5lib/namedEntities/2082 html5lib-tests |
≧
|
6 B | |
| 002490 | html5lib/namedEntities/2083 html5lib-tests |
&geqslant
|
9 B | |
| 002491 | html5lib/namedEntities/2084 html5lib-tests |
⩾
|
10 B | |
| 002492 | html5lib/namedEntities/2085 html5lib-tests |
&ges
|
4 B | |
| 002493 | html5lib/namedEntities/2086 html5lib-tests |
⩾
|
5 B | |
| 002494 | html5lib/namedEntities/2087 html5lib-tests |
&gescc
|
6 B | |
| 002495 | html5lib/namedEntities/2088 html5lib-tests |
⪩
|
7 B | |
| 002496 | html5lib/namedEntities/2089 html5lib-tests |
&gesdot
|
7 B | |
| 002497 | html5lib/namedEntities/2090 html5lib-tests |
⪀
|
8 B | |
| 002498 | html5lib/namedEntities/2091 html5lib-tests |
&gesdoto
|
8 B | |
| 002499 | html5lib/namedEntities/2092 html5lib-tests |
⪂
|
9 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