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 |
|---|---|---|---|---|
| 003304 | html5lib/namedEntities/2897 html5lib-tests |
⫽⃥
|
8 B | |
| 003305 | html5lib/namedEntities/2898 html5lib-tests |
&npart
|
6 B | |
| 003306 | html5lib/namedEntities/2899 html5lib-tests |
∂̸
|
7 B | |
| 003307 | html5lib/namedEntities/2900 html5lib-tests |
&npolint
|
8 B | |
| 003308 | html5lib/namedEntities/2901 html5lib-tests |
⨔
|
9 B | |
| 003309 | html5lib/namedEntities/2902 html5lib-tests |
&npr
|
4 B | |
| 003310 | html5lib/namedEntities/2903 html5lib-tests |
⊀
|
5 B | |
| 003311 | html5lib/namedEntities/2904 html5lib-tests |
&nprcue
|
7 B | |
| 003312 | html5lib/namedEntities/2905 html5lib-tests |
⋠
|
8 B | |
| 003313 | html5lib/namedEntities/2906 html5lib-tests |
&npre
|
5 B | |
| 003314 | html5lib/namedEntities/2907 html5lib-tests |
⪯̸
|
6 B | |
| 003315 | html5lib/namedEntities/2908 html5lib-tests |
&nprec
|
6 B | |
| 003316 | html5lib/namedEntities/2909 html5lib-tests |
⊀
|
7 B | |
| 003317 | html5lib/namedEntities/2910 html5lib-tests |
&npreceq
|
8 B | |
| 003318 | html5lib/namedEntities/2911 html5lib-tests |
⪯̸
|
9 B | |
| 003319 | html5lib/namedEntities/2912 html5lib-tests |
&nrArr
|
6 B | |
| 003320 | html5lib/namedEntities/2913 html5lib-tests |
⇏
|
7 B | |
| 003321 | html5lib/namedEntities/2914 html5lib-tests |
&nrarr
|
6 B | |
| 003322 | html5lib/namedEntities/2915 html5lib-tests |
↛
|
7 B | |
| 003323 | html5lib/namedEntities/2916 html5lib-tests |
&nrarrc
|
7 B | |
| 003324 | html5lib/namedEntities/2917 html5lib-tests |
⤳̸
|
8 B | |
| 003325 | html5lib/namedEntities/2918 html5lib-tests |
&nrarrw
|
7 B | |
| 003326 | html5lib/namedEntities/2919 html5lib-tests |
↝̸
|
8 B | |
| 003327 | html5lib/namedEntities/2920 html5lib-tests |
&nrightarrow
|
12 B | |
| 003328 | html5lib/namedEntities/2921 html5lib-tests |
↛
|
13 B | |
| 003329 | html5lib/namedEntities/2922 html5lib-tests |
&nrtri
|
6 B | |
| 003330 | html5lib/namedEntities/2923 html5lib-tests |
⋫
|
7 B | |
| 003331 | html5lib/namedEntities/2924 html5lib-tests |
&nrtrie
|
7 B | |
| 003332 | html5lib/namedEntities/2925 html5lib-tests |
⋭
|
8 B | |
| 003333 | html5lib/namedEntities/2926 html5lib-tests |
&nsc
|
4 B | |
| 003334 | html5lib/namedEntities/2927 html5lib-tests |
⊁
|
5 B | |
| 003335 | html5lib/namedEntities/2928 html5lib-tests |
&nsccue
|
7 B | |
| 003336 | html5lib/namedEntities/2929 html5lib-tests |
⋡
|
8 B | |
| 003337 | html5lib/namedEntities/2930 html5lib-tests |
&nsce
|
5 B | |
| 003338 | html5lib/namedEntities/2931 html5lib-tests |
⪰̸
|
6 B | |
| 003339 | html5lib/namedEntities/2932 html5lib-tests |
&nscr
|
5 B | |
| 003340 | html5lib/namedEntities/2933 html5lib-tests |
𝓃
|
6 B | |
| 003341 | html5lib/namedEntities/2934 html5lib-tests |
&nshortmid
|
10 B | |
| 003342 | html5lib/namedEntities/2935 html5lib-tests |
∤
|
11 B | |
| 003343 | html5lib/namedEntities/2936 html5lib-tests |
&nshortparallel
|
15 B | |
| 003344 | html5lib/namedEntities/2937 html5lib-tests |
∦
|
16 B | |
| 003345 | html5lib/namedEntities/2938 html5lib-tests |
&nsim
|
5 B | |
| 003346 | html5lib/namedEntities/2939 html5lib-tests |
≁
|
6 B | |
| 003347 | html5lib/namedEntities/2940 html5lib-tests |
&nsime
|
6 B | |
| 003348 | html5lib/namedEntities/2941 html5lib-tests |
≄
|
7 B | |
| 003349 | html5lib/namedEntities/2942 html5lib-tests |
&nsimeq
|
7 B | |
| 003350 | html5lib/namedEntities/2943 html5lib-tests |
≄
|
8 B | |
| 003351 | html5lib/namedEntities/2944 html5lib-tests |
&nsmid
|
6 B | |
| 003352 | html5lib/namedEntities/2945 html5lib-tests |
∤
|
7 B | |
| 003353 | html5lib/namedEntities/2946 html5lib-tests |
&nspar
|
6 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