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
5,931 of 6,835 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 000704 | html5lib/namedEntities/0297 html5lib-tests |
𝔽
|
6 B | |
| 000705 | html5lib/namedEntities/0298 html5lib-tests |
&ForAll
|
7 B | |
| 000706 | html5lib/namedEntities/0299 html5lib-tests |
∀
|
8 B | |
| 000707 | html5lib/namedEntities/0300 html5lib-tests |
&Fouriertrf
|
11 B | |
| 000708 | html5lib/namedEntities/0301 html5lib-tests |
ℱ
|
12 B | |
| 000709 | html5lib/namedEntities/0302 html5lib-tests |
&Fscr
|
5 B | |
| 000710 | html5lib/namedEntities/0303 html5lib-tests |
ℱ
|
6 B | |
| 000711 | html5lib/namedEntities/0304 html5lib-tests |
&GJcy
|
5 B | |
| 000712 | html5lib/namedEntities/0305 html5lib-tests |
Ѓ
|
6 B | |
| 000713 | html5lib/namedEntities/0306 html5lib-tests |
>
|
3 B | |
| 000714 | html5lib/namedEntities/0307 html5lib-tests |
>
|
4 B | |
| 000715 | html5lib/namedEntities/0308 html5lib-tests |
&Gamma
|
6 B | |
| 000716 | html5lib/namedEntities/0309 html5lib-tests |
Γ
|
7 B | |
| 000717 | html5lib/namedEntities/0310 html5lib-tests |
&Gammad
|
7 B | |
| 000718 | html5lib/namedEntities/0311 html5lib-tests |
Ϝ
|
8 B | |
| 000719 | html5lib/namedEntities/0312 html5lib-tests |
&Gbreve
|
7 B | |
| 000720 | html5lib/namedEntities/0313 html5lib-tests |
Ğ
|
8 B | |
| 000721 | html5lib/namedEntities/0314 html5lib-tests |
&Gcedil
|
7 B | |
| 000722 | html5lib/namedEntities/0315 html5lib-tests |
Ģ
|
8 B | |
| 000723 | html5lib/namedEntities/0316 html5lib-tests |
&Gcirc
|
6 B | |
| 000724 | html5lib/namedEntities/0317 html5lib-tests |
Ĝ
|
7 B | |
| 000725 | html5lib/namedEntities/0318 html5lib-tests |
&Gcy
|
4 B | |
| 000726 | html5lib/namedEntities/0319 html5lib-tests |
Г
|
5 B | |
| 000727 | html5lib/namedEntities/0320 html5lib-tests |
&Gdot
|
5 B | |
| 000728 | html5lib/namedEntities/0321 html5lib-tests |
Ġ
|
6 B | |
| 000729 | html5lib/namedEntities/0322 html5lib-tests |
&Gfr
|
4 B | |
| 000730 | html5lib/namedEntities/0323 html5lib-tests |
𝔊
|
5 B | |
| 000731 | html5lib/namedEntities/0324 html5lib-tests |
&Gg
|
3 B | |
| 000732 | html5lib/namedEntities/0325 html5lib-tests |
⋙
|
4 B | |
| 000733 | html5lib/namedEntities/0326 html5lib-tests |
&Gopf
|
5 B | |
| 000734 | html5lib/namedEntities/0327 html5lib-tests |
𝔾
|
6 B | |
| 000735 | html5lib/namedEntities/0328 html5lib-tests |
&GreaterEqual
|
13 B | |
| 000736 | html5lib/namedEntities/0329 html5lib-tests |
≥
|
14 B | |
| 000737 | html5lib/namedEntities/0330 html5lib-tests |
&GreaterEqualLess
|
17 B | |
| 000738 | html5lib/namedEntities/0331 html5lib-tests |
⋛
|
18 B | |
| 000739 | html5lib/namedEntities/0332 html5lib-tests |
&GreaterFullEqual
|
17 B | |
| 000740 | html5lib/namedEntities/0333 html5lib-tests |
≧
|
18 B | |
| 000741 | html5lib/namedEntities/0334 html5lib-tests |
&GreaterGreater
|
15 B | |
| 000742 | html5lib/namedEntities/0335 html5lib-tests |
⪢
|
16 B | |
| 000743 | html5lib/namedEntities/0336 html5lib-tests |
&GreaterLess
|
12 B | |
| 000744 | html5lib/namedEntities/0337 html5lib-tests |
≷
|
13 B | |
| 000745 | html5lib/namedEntities/0338 html5lib-tests |
&GreaterSlantEqual
|
18 B | |
| 000746 | html5lib/namedEntities/0339 html5lib-tests |
⩾
|
19 B | |
| 000747 | html5lib/namedEntities/0340 html5lib-tests |
&GreaterTilde
|
13 B | |
| 000748 | html5lib/namedEntities/0341 html5lib-tests |
≳
|
14 B | |
| 000749 | html5lib/namedEntities/0342 html5lib-tests |
&Gscr
|
5 B | |
| 000750 | html5lib/namedEntities/0343 html5lib-tests |
𝒢
|
6 B | |
| 000751 | html5lib/namedEntities/0344 html5lib-tests |
&Gt
|
3 B | |
| 000752 | html5lib/namedEntities/0345 html5lib-tests |
≫
|
4 B | |
| 000753 | html5lib/namedEntities/0346 html5lib-tests |
&HARDcy
|
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