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 |
|---|---|---|---|---|
| 000954 | html5lib/namedEntities/0547 html5lib-tests |
⟶
|
16 B | |
| 000955 | html5lib/namedEntities/0548 html5lib-tests |
&Longleftarrow
|
14 B | |
| 000956 | html5lib/namedEntities/0549 html5lib-tests |
⟸
|
15 B | |
| 000957 | html5lib/namedEntities/0550 html5lib-tests |
&Longleftrightarrow
|
19 B | |
| 000958 | html5lib/namedEntities/0551 html5lib-tests |
⟺
|
20 B | |
| 000959 | html5lib/namedEntities/0552 html5lib-tests |
&Longrightarrow
|
15 B | |
| 000960 | html5lib/namedEntities/0553 html5lib-tests |
⟹
|
16 B | |
| 000961 | html5lib/namedEntities/0554 html5lib-tests |
&Lopf
|
5 B | |
| 000962 | html5lib/namedEntities/0555 html5lib-tests |
𝕃
|
6 B | |
| 000963 | html5lib/namedEntities/0556 html5lib-tests |
&LowerLeftArrow
|
15 B | |
| 000964 | html5lib/namedEntities/0557 html5lib-tests |
↙
|
16 B | |
| 000965 | html5lib/namedEntities/0558 html5lib-tests |
&LowerRightArrow
|
16 B | |
| 000966 | html5lib/namedEntities/0559 html5lib-tests |
↘
|
17 B | |
| 000967 | html5lib/namedEntities/0560 html5lib-tests |
&Lscr
|
5 B | |
| 000968 | html5lib/namedEntities/0561 html5lib-tests |
ℒ
|
6 B | |
| 000969 | html5lib/namedEntities/0562 html5lib-tests |
&Lsh
|
4 B | |
| 000970 | html5lib/namedEntities/0563 html5lib-tests |
↰
|
5 B | |
| 000971 | html5lib/namedEntities/0564 html5lib-tests |
&Lstrok
|
7 B | |
| 000972 | html5lib/namedEntities/0565 html5lib-tests |
Ł
|
8 B | |
| 000973 | html5lib/namedEntities/0566 html5lib-tests |
&Lt
|
3 B | |
| 000974 | html5lib/namedEntities/0567 html5lib-tests |
≪
|
4 B | |
| 000975 | html5lib/namedEntities/0568 html5lib-tests |
&Map
|
4 B | |
| 000976 | html5lib/namedEntities/0569 html5lib-tests |
⤅
|
5 B | |
| 000977 | html5lib/namedEntities/0570 html5lib-tests |
&Mcy
|
4 B | |
| 000978 | html5lib/namedEntities/0571 html5lib-tests |
М
|
5 B | |
| 000979 | html5lib/namedEntities/0572 html5lib-tests |
&MediumSpace
|
12 B | |
| 000980 | html5lib/namedEntities/0573 html5lib-tests |
|
13 B | |
| 000981 | html5lib/namedEntities/0574 html5lib-tests |
&Mellintrf
|
10 B | |
| 000982 | html5lib/namedEntities/0575 html5lib-tests |
ℳ
|
11 B | |
| 000983 | html5lib/namedEntities/0576 html5lib-tests |
&Mfr
|
4 B | |
| 000984 | html5lib/namedEntities/0577 html5lib-tests |
𝔐
|
5 B | |
| 000985 | html5lib/namedEntities/0578 html5lib-tests |
&MinusPlus
|
10 B | |
| 000986 | html5lib/namedEntities/0579 html5lib-tests |
∓
|
11 B | |
| 000987 | html5lib/namedEntities/0580 html5lib-tests |
&Mopf
|
5 B | |
| 000988 | html5lib/namedEntities/0581 html5lib-tests |
𝕄
|
6 B | |
| 000989 | html5lib/namedEntities/0582 html5lib-tests |
&Mscr
|
5 B | |
| 000990 | html5lib/namedEntities/0583 html5lib-tests |
ℳ
|
6 B | |
| 000991 | html5lib/namedEntities/0584 html5lib-tests |
&Mu
|
3 B | |
| 000992 | html5lib/namedEntities/0585 html5lib-tests |
Μ
|
4 B | |
| 000993 | html5lib/namedEntities/0586 html5lib-tests |
&NJcy
|
5 B | |
| 000994 | html5lib/namedEntities/0587 html5lib-tests |
Њ
|
6 B | |
| 000995 | html5lib/namedEntities/0588 html5lib-tests |
&Nacute
|
7 B | |
| 000996 | html5lib/namedEntities/0589 html5lib-tests |
Ń
|
8 B | |
| 000997 | html5lib/namedEntities/0590 html5lib-tests |
&Ncaron
|
7 B | |
| 000998 | html5lib/namedEntities/0591 html5lib-tests |
Ň
|
8 B | |
| 000999 | html5lib/namedEntities/0592 html5lib-tests |
&Ncedil
|
7 B | |
| 001000 | html5lib/namedEntities/0593 html5lib-tests |
Ņ
|
8 B | |
| 001001 | html5lib/namedEntities/0594 html5lib-tests |
&Ncy
|
4 B | |
| 001002 | html5lib/namedEntities/0595 html5lib-tests |
Н
|
5 B | |
| 001003 | html5lib/namedEntities/0596 html5lib-tests |
&NegativeMediumSpace
|
20 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