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 |
|---|---|---|---|---|
| 002850 | html5lib/namedEntities/2443 html5lib-tests |
&ldrushar
|
9 B | |
| 002851 | html5lib/namedEntities/2444 html5lib-tests |
⥋
|
10 B | |
| 002852 | html5lib/namedEntities/2445 html5lib-tests |
&ldsh
|
5 B | |
| 002853 | html5lib/namedEntities/2446 html5lib-tests |
↲
|
6 B | |
| 002854 | html5lib/namedEntities/2447 html5lib-tests |
&le
|
3 B | |
| 002855 | html5lib/namedEntities/2448 html5lib-tests |
≤
|
4 B | |
| 002856 | html5lib/namedEntities/2449 html5lib-tests |
&leftarrow
|
10 B | |
| 002857 | html5lib/namedEntities/2450 html5lib-tests |
←
|
11 B | |
| 002858 | html5lib/namedEntities/2451 html5lib-tests |
&leftarrowtail
|
14 B | |
| 002859 | html5lib/namedEntities/2452 html5lib-tests |
↢
|
15 B | |
| 002860 | html5lib/namedEntities/2453 html5lib-tests |
&leftharpoondown
|
16 B | |
| 002861 | html5lib/namedEntities/2454 html5lib-tests |
↽
|
17 B | |
| 002862 | html5lib/namedEntities/2455 html5lib-tests |
&leftharpoonup
|
14 B | |
| 002863 | html5lib/namedEntities/2456 html5lib-tests |
↼
|
15 B | |
| 002864 | html5lib/namedEntities/2457 html5lib-tests |
&leftleftarrows
|
15 B | |
| 002865 | html5lib/namedEntities/2458 html5lib-tests |
⇇
|
16 B | |
| 002866 | html5lib/namedEntities/2459 html5lib-tests |
&leftrightarrow
|
15 B | |
| 002867 | html5lib/namedEntities/2460 html5lib-tests |
↔
|
16 B | |
| 002868 | html5lib/namedEntities/2461 html5lib-tests |
&leftrightarrows
|
16 B | |
| 002869 | html5lib/namedEntities/2462 html5lib-tests |
⇆
|
17 B | |
| 002870 | html5lib/namedEntities/2463 html5lib-tests |
&leftrightharpoons
|
18 B | |
| 002871 | html5lib/namedEntities/2464 html5lib-tests |
⇋
|
19 B | |
| 002872 | html5lib/namedEntities/2465 html5lib-tests |
&leftrightsquigarrow
|
20 B | |
| 002873 | html5lib/namedEntities/2466 html5lib-tests |
↭
|
21 B | |
| 002874 | html5lib/namedEntities/2467 html5lib-tests |
&leftthreetimes
|
15 B | |
| 002875 | html5lib/namedEntities/2468 html5lib-tests |
⋋
|
16 B | |
| 002876 | html5lib/namedEntities/2469 html5lib-tests |
&leg
|
4 B | |
| 002877 | html5lib/namedEntities/2470 html5lib-tests |
⋚
|
5 B | |
| 002878 | html5lib/namedEntities/2471 html5lib-tests |
&leq
|
4 B | |
| 002879 | html5lib/namedEntities/2472 html5lib-tests |
≤
|
5 B | |
| 002880 | html5lib/namedEntities/2473 html5lib-tests |
&leqq
|
5 B | |
| 002881 | html5lib/namedEntities/2474 html5lib-tests |
≦
|
6 B | |
| 002882 | html5lib/namedEntities/2475 html5lib-tests |
&leqslant
|
9 B | |
| 002883 | html5lib/namedEntities/2476 html5lib-tests |
⩽
|
10 B | |
| 002884 | html5lib/namedEntities/2477 html5lib-tests |
&les
|
4 B | |
| 002885 | html5lib/namedEntities/2478 html5lib-tests |
⩽
|
5 B | |
| 002886 | html5lib/namedEntities/2479 html5lib-tests |
&lescc
|
6 B | |
| 002887 | html5lib/namedEntities/2480 html5lib-tests |
⪨
|
7 B | |
| 002888 | html5lib/namedEntities/2481 html5lib-tests |
&lesdot
|
7 B | |
| 002889 | html5lib/namedEntities/2482 html5lib-tests |
⩿
|
8 B | |
| 002890 | html5lib/namedEntities/2483 html5lib-tests |
&lesdoto
|
8 B | |
| 002891 | html5lib/namedEntities/2484 html5lib-tests |
⪁
|
9 B | |
| 002892 | html5lib/namedEntities/2485 html5lib-tests |
&lesdotor
|
9 B | |
| 002893 | html5lib/namedEntities/2486 html5lib-tests |
⪃
|
10 B | |
| 002894 | html5lib/namedEntities/2487 html5lib-tests |
&lesg
|
5 B | |
| 002895 | html5lib/namedEntities/2488 html5lib-tests |
⋚︀
|
6 B | |
| 002896 | html5lib/namedEntities/2489 html5lib-tests |
&lesges
|
7 B | |
| 002897 | html5lib/namedEntities/2490 html5lib-tests |
⪓
|
8 B | |
| 002898 | html5lib/namedEntities/2491 html5lib-tests |
&lessapprox
|
11 B | |
| 002899 | html5lib/namedEntities/2492 html5lib-tests |
⪅
|
12 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