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 |
|---|---|---|---|---|
| 002950 | html5lib/namedEntities/2543 html5lib-tests |
&lnapprox
|
9 B | |
| 002951 | html5lib/namedEntities/2544 html5lib-tests |
⪉
|
10 B | |
| 002952 | html5lib/namedEntities/2545 html5lib-tests |
&lne
|
4 B | |
| 002953 | html5lib/namedEntities/2546 html5lib-tests |
⪇
|
5 B | |
| 002954 | html5lib/namedEntities/2547 html5lib-tests |
&lneq
|
5 B | |
| 002955 | html5lib/namedEntities/2548 html5lib-tests |
⪇
|
6 B | |
| 002956 | html5lib/namedEntities/2549 html5lib-tests |
&lneqq
|
6 B | |
| 002957 | html5lib/namedEntities/2550 html5lib-tests |
≨
|
7 B | |
| 002958 | html5lib/namedEntities/2551 html5lib-tests |
&lnsim
|
6 B | |
| 002959 | html5lib/namedEntities/2552 html5lib-tests |
⋦
|
7 B | |
| 002960 | html5lib/namedEntities/2553 html5lib-tests |
&loang
|
6 B | |
| 002961 | html5lib/namedEntities/2554 html5lib-tests |
⟬
|
7 B | |
| 002962 | html5lib/namedEntities/2555 html5lib-tests |
&loarr
|
6 B | |
| 002963 | html5lib/namedEntities/2556 html5lib-tests |
⇽
|
7 B | |
| 002964 | html5lib/namedEntities/2557 html5lib-tests |
&lobrk
|
6 B | |
| 002965 | html5lib/namedEntities/2558 html5lib-tests |
⟦
|
7 B | |
| 002966 | html5lib/namedEntities/2559 html5lib-tests |
&longleftarrow
|
14 B | |
| 002967 | html5lib/namedEntities/2560 html5lib-tests |
⟵
|
15 B | |
| 002968 | html5lib/namedEntities/2561 html5lib-tests |
&longleftrightarrow
|
19 B | |
| 002969 | html5lib/namedEntities/2562 html5lib-tests |
⟷
|
20 B | |
| 002970 | html5lib/namedEntities/2563 html5lib-tests |
&longmapsto
|
11 B | |
| 002971 | html5lib/namedEntities/2564 html5lib-tests |
⟼
|
12 B | |
| 002972 | html5lib/namedEntities/2565 html5lib-tests |
&longrightarrow
|
15 B | |
| 002973 | html5lib/namedEntities/2566 html5lib-tests |
⟶
|
16 B | |
| 002974 | html5lib/namedEntities/2567 html5lib-tests |
&looparrowleft
|
14 B | |
| 002975 | html5lib/namedEntities/2568 html5lib-tests |
↫
|
15 B | |
| 002976 | html5lib/namedEntities/2569 html5lib-tests |
&looparrowright
|
15 B | |
| 002977 | html5lib/namedEntities/2570 html5lib-tests |
↬
|
16 B | |
| 002978 | html5lib/namedEntities/2571 html5lib-tests |
&lopar
|
6 B | |
| 002979 | html5lib/namedEntities/2572 html5lib-tests |
⦅
|
7 B | |
| 002980 | html5lib/namedEntities/2573 html5lib-tests |
&lopf
|
5 B | |
| 002981 | html5lib/namedEntities/2574 html5lib-tests |
𝕝
|
6 B | |
| 002982 | html5lib/namedEntities/2575 html5lib-tests |
&loplus
|
7 B | |
| 002983 | html5lib/namedEntities/2576 html5lib-tests |
⨭
|
8 B | |
| 002984 | html5lib/namedEntities/2577 html5lib-tests |
&lotimes
|
8 B | |
| 002985 | html5lib/namedEntities/2578 html5lib-tests |
⨴
|
9 B | |
| 002986 | html5lib/namedEntities/2579 html5lib-tests |
&lowast
|
7 B | |
| 002987 | html5lib/namedEntities/2580 html5lib-tests |
∗
|
8 B | |
| 002988 | html5lib/namedEntities/2581 html5lib-tests |
&lowbar
|
7 B | |
| 002989 | html5lib/namedEntities/2582 html5lib-tests |
_
|
8 B | |
| 002990 | html5lib/namedEntities/2583 html5lib-tests |
&loz
|
4 B | |
| 002991 | html5lib/namedEntities/2584 html5lib-tests |
◊
|
5 B | |
| 002992 | html5lib/namedEntities/2585 html5lib-tests |
&lozenge
|
8 B | |
| 002993 | html5lib/namedEntities/2586 html5lib-tests |
◊
|
9 B | |
| 002994 | html5lib/namedEntities/2587 html5lib-tests |
&lozf
|
5 B | |
| 002995 | html5lib/namedEntities/2588 html5lib-tests |
⧫
|
6 B | |
| 002996 | html5lib/namedEntities/2589 html5lib-tests |
&lpar
|
5 B | |
| 002997 | html5lib/namedEntities/2590 html5lib-tests |
(
|
6 B | |
| 002998 | html5lib/namedEntities/2591 html5lib-tests |
&lparlt
|
7 B | |
| 002999 | html5lib/namedEntities/2592 html5lib-tests |
⦓
|
8 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