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 |
|---|---|---|---|---|
| 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 | |
| 000754 | html5lib/namedEntities/0347 html5lib-tests |
Ъ
|
8 B | |
| 000755 | html5lib/namedEntities/0348 html5lib-tests |
&Hacek
|
6 B | |
| 000756 | html5lib/namedEntities/0349 html5lib-tests |
ˇ
|
7 B | |
| 000757 | html5lib/namedEntities/0350 html5lib-tests |
&Hat
|
4 B | |
| 000758 | html5lib/namedEntities/0351 html5lib-tests |
^
|
5 B | |
| 000759 | html5lib/namedEntities/0352 html5lib-tests |
&Hcirc
|
6 B | |
| 000760 | html5lib/namedEntities/0353 html5lib-tests |
Ĥ
|
7 B | |
| 000761 | html5lib/namedEntities/0354 html5lib-tests |
&Hfr
|
4 B | |
| 000762 | html5lib/namedEntities/0355 html5lib-tests |
ℌ
|
5 B | |
| 000763 | html5lib/namedEntities/0356 html5lib-tests |
&HilbertSpace
|
13 B | |
| 000764 | html5lib/namedEntities/0357 html5lib-tests |
ℋ
|
14 B | |
| 000765 | html5lib/namedEntities/0358 html5lib-tests |
&Hopf
|
5 B | |
| 000766 | html5lib/namedEntities/0359 html5lib-tests |
ℍ
|
6 B | |
| 000767 | html5lib/namedEntities/0360 html5lib-tests |
&HorizontalLine
|
15 B | |
| 000768 | html5lib/namedEntities/0361 html5lib-tests |
─
|
16 B | |
| 000769 | html5lib/namedEntities/0362 html5lib-tests |
&Hscr
|
5 B | |
| 000770 | html5lib/namedEntities/0363 html5lib-tests |
ℋ
|
6 B | |
| 000771 | html5lib/namedEntities/0364 html5lib-tests |
&Hstrok
|
7 B | |
| 000772 | html5lib/namedEntities/0365 html5lib-tests |
Ħ
|
8 B | |
| 000773 | html5lib/namedEntities/0366 html5lib-tests |
&HumpDownHump
|
13 B | |
| 000774 | html5lib/namedEntities/0367 html5lib-tests |
≎
|
14 B | |
| 000775 | html5lib/namedEntities/0368 html5lib-tests |
&HumpEqual
|
10 B | |
| 000776 | html5lib/namedEntities/0369 html5lib-tests |
≏
|
11 B | |
| 000777 | html5lib/namedEntities/0370 html5lib-tests |
&IEcy
|
5 B | |
| 000778 | html5lib/namedEntities/0371 html5lib-tests |
Е
|
6 B | |
| 000779 | html5lib/namedEntities/0372 html5lib-tests |
&IJlig
|
6 B | |
| 000780 | html5lib/namedEntities/0373 html5lib-tests |
IJ
|
7 B | |
| 000781 | html5lib/namedEntities/0374 html5lib-tests |
&IOcy
|
5 B | |
| 000782 | html5lib/namedEntities/0375 html5lib-tests |
Ё
|
6 B | |
| 000783 | html5lib/namedEntities/0376 html5lib-tests |
Í
|
7 B | |
| 000784 | html5lib/namedEntities/0377 html5lib-tests |
Í
|
8 B | |
| 000785 | html5lib/namedEntities/0378 html5lib-tests |
Î
|
6 B | |
| 000786 | html5lib/namedEntities/0379 html5lib-tests |
Î
|
7 B | |
| 000787 | html5lib/namedEntities/0380 html5lib-tests |
&Icy
|
4 B | |
| 000788 | html5lib/namedEntities/0381 html5lib-tests |
И
|
5 B | |
| 000789 | html5lib/namedEntities/0382 html5lib-tests |
&Idot
|
5 B | |
| 000790 | html5lib/namedEntities/0383 html5lib-tests |
İ
|
6 B | |
| 000791 | html5lib/namedEntities/0384 html5lib-tests |
&Ifr
|
4 B | |
| 000792 | html5lib/namedEntities/0385 html5lib-tests |
ℑ
|
5 B | |
| 000793 | html5lib/namedEntities/0386 html5lib-tests |
Ì
|
7 B | |
| 000794 | html5lib/namedEntities/0387 html5lib-tests |
Ì
|
8 B | |
| 000795 | html5lib/namedEntities/0388 html5lib-tests |
&Im
|
3 B | |
| 000796 | html5lib/namedEntities/0389 html5lib-tests |
ℑ
|
4 B | |
| 000797 | html5lib/namedEntities/0390 html5lib-tests |
&Imacr
|
6 B | |
| 000798 | html5lib/namedEntities/0391 html5lib-tests |
Ī
|
7 B | |
| 000799 | html5lib/namedEntities/0392 html5lib-tests |
&ImaginaryI
|
11 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