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 |
|---|---|---|---|---|
| 003800 | html5lib/namedEntities/3393 html5lib-tests |
&realpart
|
9 B | |
| 003801 | html5lib/namedEntities/3394 html5lib-tests |
ℜ
|
10 B | |
| 003802 | html5lib/namedEntities/3395 html5lib-tests |
&reals
|
6 B | |
| 003803 | html5lib/namedEntities/3396 html5lib-tests |
ℝ
|
7 B | |
| 003804 | html5lib/namedEntities/3397 html5lib-tests |
&rect
|
5 B | |
| 003805 | html5lib/namedEntities/3398 html5lib-tests |
▭
|
6 B | |
| 003806 | html5lib/namedEntities/3399 html5lib-tests |
®
|
4 B | |
| 003807 | html5lib/namedEntities/3400 html5lib-tests |
®
|
5 B | |
| 003808 | html5lib/namedEntities/3401 html5lib-tests |
&rfisht
|
7 B | |
| 003809 | html5lib/namedEntities/3402 html5lib-tests |
⥽
|
8 B | |
| 003810 | html5lib/namedEntities/3403 html5lib-tests |
&rfloor
|
7 B | |
| 003811 | html5lib/namedEntities/3404 html5lib-tests |
⌋
|
8 B | |
| 003812 | html5lib/namedEntities/3405 html5lib-tests |
&rfr
|
4 B | |
| 003813 | html5lib/namedEntities/3406 html5lib-tests |
𝔯
|
5 B | |
| 003814 | html5lib/namedEntities/3407 html5lib-tests |
&rhard
|
6 B | |
| 003815 | html5lib/namedEntities/3408 html5lib-tests |
⇁
|
7 B | |
| 003816 | html5lib/namedEntities/3409 html5lib-tests |
&rharu
|
6 B | |
| 003817 | html5lib/namedEntities/3410 html5lib-tests |
⇀
|
7 B | |
| 003818 | html5lib/namedEntities/3411 html5lib-tests |
&rharul
|
7 B | |
| 003819 | html5lib/namedEntities/3412 html5lib-tests |
⥬
|
8 B | |
| 003820 | html5lib/namedEntities/3413 html5lib-tests |
&rho
|
4 B | |
| 003821 | html5lib/namedEntities/3414 html5lib-tests |
ρ
|
5 B | |
| 003822 | html5lib/namedEntities/3415 html5lib-tests |
&rhov
|
5 B | |
| 003823 | html5lib/namedEntities/3416 html5lib-tests |
ϱ
|
6 B | |
| 003824 | html5lib/namedEntities/3417 html5lib-tests |
&rightarrow
|
11 B | |
| 003825 | html5lib/namedEntities/3418 html5lib-tests |
→
|
12 B | |
| 003826 | html5lib/namedEntities/3419 html5lib-tests |
&rightarrowtail
|
15 B | |
| 003827 | html5lib/namedEntities/3420 html5lib-tests |
↣
|
16 B | |
| 003828 | html5lib/namedEntities/3421 html5lib-tests |
&rightharpoondown
|
17 B | |
| 003829 | html5lib/namedEntities/3422 html5lib-tests |
⇁
|
18 B | |
| 003830 | html5lib/namedEntities/3423 html5lib-tests |
&rightharpoonup
|
15 B | |
| 003831 | html5lib/namedEntities/3424 html5lib-tests |
⇀
|
16 B | |
| 003832 | html5lib/namedEntities/3425 html5lib-tests |
&rightleftarrows
|
16 B | |
| 003833 | html5lib/namedEntities/3426 html5lib-tests |
⇄
|
17 B | |
| 003834 | html5lib/namedEntities/3427 html5lib-tests |
&rightleftharpoons
|
18 B | |
| 003835 | html5lib/namedEntities/3428 html5lib-tests |
⇌
|
19 B | |
| 003836 | html5lib/namedEntities/3429 html5lib-tests |
&rightrightarrows
|
17 B | |
| 003837 | html5lib/namedEntities/3430 html5lib-tests |
⇉
|
18 B | |
| 003838 | html5lib/namedEntities/3431 html5lib-tests |
&rightsquigarrow
|
16 B | |
| 003839 | html5lib/namedEntities/3432 html5lib-tests |
↝
|
17 B | |
| 003840 | html5lib/namedEntities/3433 html5lib-tests |
&rightthreetimes
|
16 B | |
| 003841 | html5lib/namedEntities/3434 html5lib-tests |
⋌
|
17 B | |
| 003842 | html5lib/namedEntities/3435 html5lib-tests |
&ring
|
5 B | |
| 003843 | html5lib/namedEntities/3436 html5lib-tests |
˚
|
6 B | |
| 003844 | html5lib/namedEntities/3437 html5lib-tests |
&risingdotseq
|
13 B | |
| 003845 | html5lib/namedEntities/3438 html5lib-tests |
≓
|
14 B | |
| 003846 | html5lib/namedEntities/3439 html5lib-tests |
&rlarr
|
6 B | |
| 003847 | html5lib/namedEntities/3440 html5lib-tests |
⇄
|
7 B | |
| 003848 | html5lib/namedEntities/3441 html5lib-tests |
&rlhar
|
6 B | |
| 003849 | html5lib/namedEntities/3442 html5lib-tests |
⇌
|
7 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