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 |
|---|---|---|---|---|
| 002700 | html5lib/namedEntities/2293 html5lib-tests |
¿
|
7 B | |
| 002701 | html5lib/namedEntities/2294 html5lib-tests |
¿
|
8 B | |
| 002702 | html5lib/namedEntities/2295 html5lib-tests |
&iscr
|
5 B | |
| 002703 | html5lib/namedEntities/2296 html5lib-tests |
𝒾
|
6 B | |
| 002704 | html5lib/namedEntities/2297 html5lib-tests |
&isin
|
5 B | |
| 002705 | html5lib/namedEntities/2298 html5lib-tests |
∈
|
6 B | |
| 002706 | html5lib/namedEntities/2299 html5lib-tests |
&isinE
|
6 B | |
| 002707 | html5lib/namedEntities/2300 html5lib-tests |
⋹
|
7 B | |
| 002708 | html5lib/namedEntities/2301 html5lib-tests |
&isindot
|
8 B | |
| 002709 | html5lib/namedEntities/2302 html5lib-tests |
⋵
|
9 B | |
| 002710 | html5lib/namedEntities/2303 html5lib-tests |
&isins
|
6 B | |
| 002711 | html5lib/namedEntities/2304 html5lib-tests |
⋴
|
7 B | |
| 002712 | html5lib/namedEntities/2305 html5lib-tests |
&isinsv
|
7 B | |
| 002713 | html5lib/namedEntities/2306 html5lib-tests |
⋳
|
8 B | |
| 002714 | html5lib/namedEntities/2307 html5lib-tests |
&isinv
|
6 B | |
| 002715 | html5lib/namedEntities/2308 html5lib-tests |
∈
|
7 B | |
| 002716 | html5lib/namedEntities/2309 html5lib-tests |
&it
|
3 B | |
| 002717 | html5lib/namedEntities/2310 html5lib-tests |
⟨U+2062⟩
|
4 B | |
| 002718 | html5lib/namedEntities/2311 html5lib-tests |
&itilde
|
7 B | |
| 002719 | html5lib/namedEntities/2312 html5lib-tests |
ĩ
|
8 B | |
| 002720 | html5lib/namedEntities/2313 html5lib-tests |
&iukcy
|
6 B | |
| 002721 | html5lib/namedEntities/2314 html5lib-tests |
і
|
7 B | |
| 002722 | html5lib/namedEntities/2315 html5lib-tests |
ï
|
5 B | |
| 002723 | html5lib/namedEntities/2316 html5lib-tests |
ï
|
6 B | |
| 002724 | html5lib/namedEntities/2317 html5lib-tests |
&jcirc
|
6 B | |
| 002725 | html5lib/namedEntities/2318 html5lib-tests |
ĵ
|
7 B | |
| 002726 | html5lib/namedEntities/2319 html5lib-tests |
&jcy
|
4 B | |
| 002727 | html5lib/namedEntities/2320 html5lib-tests |
й
|
5 B | |
| 002728 | html5lib/namedEntities/2321 html5lib-tests |
&jfr
|
4 B | |
| 002729 | html5lib/namedEntities/2322 html5lib-tests |
𝔧
|
5 B | |
| 002730 | html5lib/namedEntities/2323 html5lib-tests |
&jmath
|
6 B | |
| 002731 | html5lib/namedEntities/2324 html5lib-tests |
ȷ
|
7 B | |
| 002732 | html5lib/namedEntities/2325 html5lib-tests |
&jopf
|
5 B | |
| 002733 | html5lib/namedEntities/2326 html5lib-tests |
𝕛
|
6 B | |
| 002734 | html5lib/namedEntities/2327 html5lib-tests |
&jscr
|
5 B | |
| 002735 | html5lib/namedEntities/2328 html5lib-tests |
𝒿
|
6 B | |
| 002736 | html5lib/namedEntities/2329 html5lib-tests |
&jsercy
|
7 B | |
| 002737 | html5lib/namedEntities/2330 html5lib-tests |
ј
|
8 B | |
| 002738 | html5lib/namedEntities/2331 html5lib-tests |
&jukcy
|
6 B | |
| 002739 | html5lib/namedEntities/2332 html5lib-tests |
є
|
7 B | |
| 002740 | html5lib/namedEntities/2333 html5lib-tests |
&kappa
|
6 B | |
| 002741 | html5lib/namedEntities/2334 html5lib-tests |
κ
|
7 B | |
| 002742 | html5lib/namedEntities/2335 html5lib-tests |
&kappav
|
7 B | |
| 002743 | html5lib/namedEntities/2336 html5lib-tests |
ϰ
|
8 B | |
| 002744 | html5lib/namedEntities/2337 html5lib-tests |
&kcedil
|
7 B | |
| 002745 | html5lib/namedEntities/2338 html5lib-tests |
ķ
|
8 B | |
| 002746 | html5lib/namedEntities/2339 html5lib-tests |
&kcy
|
4 B | |
| 002747 | html5lib/namedEntities/2340 html5lib-tests |
к
|
5 B | |
| 002748 | html5lib/namedEntities/2341 html5lib-tests |
&kfr
|
4 B | |
| 002749 | html5lib/namedEntities/2342 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