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 |
|---|---|---|---|---|
| 001204 | html5lib/namedEntities/0797 html5lib-tests |
≼
|
20 B | |
| 001205 | html5lib/namedEntities/0798 html5lib-tests |
&PrecedesTilde
|
14 B | |
| 001206 | html5lib/namedEntities/0799 html5lib-tests |
≾
|
15 B | |
| 001207 | html5lib/namedEntities/0800 html5lib-tests |
&Prime
|
6 B | |
| 001208 | html5lib/namedEntities/0801 html5lib-tests |
″
|
7 B | |
| 001209 | html5lib/namedEntities/0802 html5lib-tests |
&Product
|
8 B | |
| 001210 | html5lib/namedEntities/0803 html5lib-tests |
∏
|
9 B | |
| 001211 | html5lib/namedEntities/0804 html5lib-tests |
&Proportion
|
11 B | |
| 001212 | html5lib/namedEntities/0805 html5lib-tests |
∷
|
12 B | |
| 001213 | html5lib/namedEntities/0806 html5lib-tests |
&Proportional
|
13 B | |
| 001214 | html5lib/namedEntities/0807 html5lib-tests |
∝
|
14 B | |
| 001215 | html5lib/namedEntities/0808 html5lib-tests |
&Pscr
|
5 B | |
| 001216 | html5lib/namedEntities/0809 html5lib-tests |
𝒫
|
6 B | |
| 001217 | html5lib/namedEntities/0810 html5lib-tests |
&Psi
|
4 B | |
| 001218 | html5lib/namedEntities/0811 html5lib-tests |
Ψ
|
5 B | |
| 001219 | html5lib/namedEntities/0812 html5lib-tests |
"
|
5 B | |
| 001220 | html5lib/namedEntities/0813 html5lib-tests |
"
|
6 B | |
| 001221 | html5lib/namedEntities/0814 html5lib-tests |
&Qfr
|
4 B | |
| 001222 | html5lib/namedEntities/0815 html5lib-tests |
𝔔
|
5 B | |
| 001223 | html5lib/namedEntities/0816 html5lib-tests |
&Qopf
|
5 B | |
| 001224 | html5lib/namedEntities/0817 html5lib-tests |
ℚ
|
6 B | |
| 001225 | html5lib/namedEntities/0818 html5lib-tests |
&Qscr
|
5 B | |
| 001226 | html5lib/namedEntities/0819 html5lib-tests |
𝒬
|
6 B | |
| 001227 | html5lib/namedEntities/0820 html5lib-tests |
&RBarr
|
6 B | |
| 001228 | html5lib/namedEntities/0821 html5lib-tests |
⤐
|
7 B | |
| 001229 | html5lib/namedEntities/0822 html5lib-tests |
®
|
4 B | |
| 001230 | html5lib/namedEntities/0823 html5lib-tests |
®
|
5 B | |
| 001231 | html5lib/namedEntities/0824 html5lib-tests |
&Racute
|
7 B | |
| 001232 | html5lib/namedEntities/0825 html5lib-tests |
Ŕ
|
8 B | |
| 001233 | html5lib/namedEntities/0826 html5lib-tests |
&Rang
|
5 B | |
| 001234 | html5lib/namedEntities/0827 html5lib-tests |
⟫
|
6 B | |
| 001235 | html5lib/namedEntities/0828 html5lib-tests |
&Rarr
|
5 B | |
| 001236 | html5lib/namedEntities/0829 html5lib-tests |
↠
|
6 B | |
| 001237 | html5lib/namedEntities/0830 html5lib-tests |
&Rarrtl
|
7 B | |
| 001238 | html5lib/namedEntities/0831 html5lib-tests |
⤖
|
8 B | |
| 001239 | html5lib/namedEntities/0832 html5lib-tests |
&Rcaron
|
7 B | |
| 001240 | html5lib/namedEntities/0833 html5lib-tests |
Ř
|
8 B | |
| 001241 | html5lib/namedEntities/0834 html5lib-tests |
&Rcedil
|
7 B | |
| 001242 | html5lib/namedEntities/0835 html5lib-tests |
Ŗ
|
8 B | |
| 001243 | html5lib/namedEntities/0836 html5lib-tests |
&Rcy
|
4 B | |
| 001244 | html5lib/namedEntities/0837 html5lib-tests |
Р
|
5 B | |
| 001245 | html5lib/namedEntities/0838 html5lib-tests |
&Re
|
3 B | |
| 001246 | html5lib/namedEntities/0839 html5lib-tests |
ℜ
|
4 B | |
| 001247 | html5lib/namedEntities/0840 html5lib-tests |
&ReverseElement
|
15 B | |
| 001248 | html5lib/namedEntities/0841 html5lib-tests |
∋
|
16 B | |
| 001249 | html5lib/namedEntities/0842 html5lib-tests |
&ReverseEquilibrium
|
19 B | |
| 001250 | html5lib/namedEntities/0843 html5lib-tests |
⇋
|
20 B | |
| 001251 | html5lib/namedEntities/0844 html5lib-tests |
&ReverseUpEquilibrium
|
21 B | |
| 001252 | html5lib/namedEntities/0845 html5lib-tests |
⥯
|
22 B | |
| 001253 | html5lib/namedEntities/0846 html5lib-tests |
&Rfr
|
4 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