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 |
|---|---|---|---|---|
| 001150 | html5lib/namedEntities/0743 html5lib-tests |
Ō
|
7 B | |
| 001151 | html5lib/namedEntities/0744 html5lib-tests |
&Omega
|
6 B | |
| 001152 | html5lib/namedEntities/0745 html5lib-tests |
Ω
|
7 B | |
| 001153 | html5lib/namedEntities/0746 html5lib-tests |
&Omicron
|
8 B | |
| 001154 | html5lib/namedEntities/0747 html5lib-tests |
Ο
|
9 B | |
| 001155 | html5lib/namedEntities/0748 html5lib-tests |
&Oopf
|
5 B | |
| 001156 | html5lib/namedEntities/0749 html5lib-tests |
𝕆
|
6 B | |
| 001157 | html5lib/namedEntities/0750 html5lib-tests |
&OpenCurlyDoubleQuote
|
21 B | |
| 001158 | html5lib/namedEntities/0751 html5lib-tests |
“
|
22 B | |
| 001159 | html5lib/namedEntities/0752 html5lib-tests |
&OpenCurlyQuote
|
15 B | |
| 001160 | html5lib/namedEntities/0753 html5lib-tests |
‘
|
16 B | |
| 001161 | html5lib/namedEntities/0754 html5lib-tests |
&Or
|
3 B | |
| 001162 | html5lib/namedEntities/0755 html5lib-tests |
⩔
|
4 B | |
| 001163 | html5lib/namedEntities/0756 html5lib-tests |
&Oscr
|
5 B | |
| 001164 | html5lib/namedEntities/0757 html5lib-tests |
𝒪
|
6 B | |
| 001165 | html5lib/namedEntities/0758 html5lib-tests |
Ø
|
7 B | |
| 001166 | html5lib/namedEntities/0759 html5lib-tests |
Ø
|
8 B | |
| 001167 | html5lib/namedEntities/0760 html5lib-tests |
Õ
|
7 B | |
| 001168 | html5lib/namedEntities/0761 html5lib-tests |
Õ
|
8 B | |
| 001169 | html5lib/namedEntities/0762 html5lib-tests |
&Otimes
|
7 B | |
| 001170 | html5lib/namedEntities/0763 html5lib-tests |
⨷
|
8 B | |
| 001171 | html5lib/namedEntities/0764 html5lib-tests |
Ö
|
5 B | |
| 001172 | html5lib/namedEntities/0765 html5lib-tests |
Ö
|
6 B | |
| 001173 | html5lib/namedEntities/0766 html5lib-tests |
&OverBar
|
8 B | |
| 001174 | html5lib/namedEntities/0767 html5lib-tests |
‾
|
9 B | |
| 001175 | html5lib/namedEntities/0768 html5lib-tests |
&OverBrace
|
10 B | |
| 001176 | html5lib/namedEntities/0769 html5lib-tests |
⏞
|
11 B | |
| 001177 | html5lib/namedEntities/0770 html5lib-tests |
&OverBracket
|
12 B | |
| 001178 | html5lib/namedEntities/0771 html5lib-tests |
⎴
|
13 B | |
| 001179 | html5lib/namedEntities/0772 html5lib-tests |
&OverParenthesis
|
16 B | |
| 001180 | html5lib/namedEntities/0773 html5lib-tests |
⏜
|
17 B | |
| 001181 | html5lib/namedEntities/0774 html5lib-tests |
&PartialD
|
9 B | |
| 001182 | html5lib/namedEntities/0775 html5lib-tests |
∂
|
10 B | |
| 001183 | html5lib/namedEntities/0776 html5lib-tests |
&Pcy
|
4 B | |
| 001184 | html5lib/namedEntities/0777 html5lib-tests |
П
|
5 B | |
| 001185 | html5lib/namedEntities/0778 html5lib-tests |
&Pfr
|
4 B | |
| 001186 | html5lib/namedEntities/0779 html5lib-tests |
𝔓
|
5 B | |
| 001187 | html5lib/namedEntities/0780 html5lib-tests |
&Phi
|
4 B | |
| 001188 | html5lib/namedEntities/0781 html5lib-tests |
Φ
|
5 B | |
| 001189 | html5lib/namedEntities/0782 html5lib-tests |
&Pi
|
3 B | |
| 001190 | html5lib/namedEntities/0783 html5lib-tests |
Π
|
4 B | |
| 001191 | html5lib/namedEntities/0784 html5lib-tests |
&PlusMinus
|
10 B | |
| 001192 | html5lib/namedEntities/0785 html5lib-tests |
±
|
11 B | |
| 001193 | html5lib/namedEntities/0786 html5lib-tests |
&Poincareplane
|
14 B | |
| 001194 | html5lib/namedEntities/0787 html5lib-tests |
ℌ
|
15 B | |
| 001195 | html5lib/namedEntities/0788 html5lib-tests |
&Popf
|
5 B | |
| 001196 | html5lib/namedEntities/0789 html5lib-tests |
ℙ
|
6 B | |
| 001197 | html5lib/namedEntities/0790 html5lib-tests |
&Pr
|
3 B | |
| 001198 | html5lib/namedEntities/0791 html5lib-tests |
⪻
|
4 B | |
| 001199 | html5lib/namedEntities/0792 html5lib-tests |
&Precedes
|
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