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 |
|---|---|---|---|---|
| 004104 | html5lib/namedEntities/3697 html5lib-tests |
&subedot
|
8 B | |
| 004105 | html5lib/namedEntities/3698 html5lib-tests |
⫃
|
9 B | |
| 004106 | html5lib/namedEntities/3699 html5lib-tests |
&submult
|
8 B | |
| 004107 | html5lib/namedEntities/3700 html5lib-tests |
⫁
|
9 B | |
| 004108 | html5lib/namedEntities/3701 html5lib-tests |
&subnE
|
6 B | |
| 004109 | html5lib/namedEntities/3702 html5lib-tests |
⫋
|
7 B | |
| 004110 | html5lib/namedEntities/3703 html5lib-tests |
&subne
|
6 B | |
| 004111 | html5lib/namedEntities/3704 html5lib-tests |
⊊
|
7 B | |
| 004112 | html5lib/namedEntities/3705 html5lib-tests |
&subplus
|
8 B | |
| 004113 | html5lib/namedEntities/3706 html5lib-tests |
⪿
|
9 B | |
| 004114 | html5lib/namedEntities/3707 html5lib-tests |
&subrarr
|
8 B | |
| 004115 | html5lib/namedEntities/3708 html5lib-tests |
⥹
|
9 B | |
| 004116 | html5lib/namedEntities/3709 html5lib-tests |
&subset
|
7 B | |
| 004117 | html5lib/namedEntities/3710 html5lib-tests |
⊂
|
8 B | |
| 004118 | html5lib/namedEntities/3711 html5lib-tests |
&subseteq
|
9 B | |
| 004119 | html5lib/namedEntities/3712 html5lib-tests |
⊆
|
10 B | |
| 004120 | html5lib/namedEntities/3713 html5lib-tests |
&subseteqq
|
10 B | |
| 004121 | html5lib/namedEntities/3714 html5lib-tests |
⫅
|
11 B | |
| 004122 | html5lib/namedEntities/3715 html5lib-tests |
&subsetneq
|
10 B | |
| 004123 | html5lib/namedEntities/3716 html5lib-tests |
⊊
|
11 B | |
| 004124 | html5lib/namedEntities/3717 html5lib-tests |
&subsetneqq
|
11 B | |
| 004125 | html5lib/namedEntities/3718 html5lib-tests |
⫋
|
12 B | |
| 004126 | html5lib/namedEntities/3719 html5lib-tests |
&subsim
|
7 B | |
| 004127 | html5lib/namedEntities/3720 html5lib-tests |
⫇
|
8 B | |
| 004128 | html5lib/namedEntities/3721 html5lib-tests |
&subsub
|
7 B | |
| 004129 | html5lib/namedEntities/3722 html5lib-tests |
⫕
|
8 B | |
| 004130 | html5lib/namedEntities/3723 html5lib-tests |
&subsup
|
7 B | |
| 004131 | html5lib/namedEntities/3724 html5lib-tests |
⫓
|
8 B | |
| 004132 | html5lib/namedEntities/3725 html5lib-tests |
&succ
|
5 B | |
| 004133 | html5lib/namedEntities/3726 html5lib-tests |
≻
|
6 B | |
| 004134 | html5lib/namedEntities/3727 html5lib-tests |
&succapprox
|
11 B | |
| 004135 | html5lib/namedEntities/3728 html5lib-tests |
⪸
|
12 B | |
| 004136 | html5lib/namedEntities/3729 html5lib-tests |
&succcurlyeq
|
12 B | |
| 004137 | html5lib/namedEntities/3730 html5lib-tests |
≽
|
13 B | |
| 004138 | html5lib/namedEntities/3731 html5lib-tests |
&succeq
|
7 B | |
| 004139 | html5lib/namedEntities/3732 html5lib-tests |
⪰
|
8 B | |
| 004140 | html5lib/namedEntities/3733 html5lib-tests |
&succnapprox
|
12 B | |
| 004141 | html5lib/namedEntities/3734 html5lib-tests |
⪺
|
13 B | |
| 004142 | html5lib/namedEntities/3735 html5lib-tests |
&succneqq
|
9 B | |
| 004143 | html5lib/namedEntities/3736 html5lib-tests |
⪶
|
10 B | |
| 004144 | html5lib/namedEntities/3737 html5lib-tests |
&succnsim
|
9 B | |
| 004145 | html5lib/namedEntities/3738 html5lib-tests |
⋩
|
10 B | |
| 004146 | html5lib/namedEntities/3739 html5lib-tests |
&succsim
|
8 B | |
| 004147 | html5lib/namedEntities/3740 html5lib-tests |
≿
|
9 B | |
| 004148 | html5lib/namedEntities/3741 html5lib-tests |
&sum
|
4 B | |
| 004149 | html5lib/namedEntities/3742 html5lib-tests |
∑
|
5 B | |
| 004150 | html5lib/namedEntities/3743 html5lib-tests |
&sung
|
5 B | |
| 004151 | html5lib/namedEntities/3744 html5lib-tests |
♪
|
6 B | |
| 004152 | html5lib/namedEntities/3745 html5lib-tests |
&sup
|
4 B | |
| 004153 | html5lib/namedEntities/3746 html5lib-tests |
¹
|
5 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