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 |
|---|---|---|---|---|
| 003104 | html5lib/namedEntities/2697 html5lib-tests |
⨪
|
9 B | |
| 003105 | html5lib/namedEntities/2698 html5lib-tests |
&mlcp
|
5 B | |
| 003106 | html5lib/namedEntities/2699 html5lib-tests |
⫛
|
6 B | |
| 003107 | html5lib/namedEntities/2700 html5lib-tests |
&mldr
|
5 B | |
| 003108 | html5lib/namedEntities/2701 html5lib-tests |
…
|
6 B | |
| 003109 | html5lib/namedEntities/2702 html5lib-tests |
&mnplus
|
7 B | |
| 003110 | html5lib/namedEntities/2703 html5lib-tests |
∓
|
8 B | |
| 003111 | html5lib/namedEntities/2704 html5lib-tests |
&models
|
7 B | |
| 003112 | html5lib/namedEntities/2705 html5lib-tests |
⊧
|
8 B | |
| 003113 | html5lib/namedEntities/2706 html5lib-tests |
&mopf
|
5 B | |
| 003114 | html5lib/namedEntities/2707 html5lib-tests |
𝕞
|
6 B | |
| 003115 | html5lib/namedEntities/2708 html5lib-tests |
&mp
|
3 B | |
| 003116 | html5lib/namedEntities/2709 html5lib-tests |
∓
|
4 B | |
| 003117 | html5lib/namedEntities/2710 html5lib-tests |
&mscr
|
5 B | |
| 003118 | html5lib/namedEntities/2711 html5lib-tests |
𝓂
|
6 B | |
| 003119 | html5lib/namedEntities/2712 html5lib-tests |
&mstpos
|
7 B | |
| 003120 | html5lib/namedEntities/2713 html5lib-tests |
∾
|
8 B | |
| 003121 | html5lib/namedEntities/2714 html5lib-tests |
&mu
|
3 B | |
| 003122 | html5lib/namedEntities/2715 html5lib-tests |
μ
|
4 B | |
| 003123 | html5lib/namedEntities/2716 html5lib-tests |
&multimap
|
9 B | |
| 003124 | html5lib/namedEntities/2717 html5lib-tests |
⊸
|
10 B | |
| 003125 | html5lib/namedEntities/2718 html5lib-tests |
&mumap
|
6 B | |
| 003126 | html5lib/namedEntities/2719 html5lib-tests |
⊸
|
7 B | |
| 003127 | html5lib/namedEntities/2720 html5lib-tests |
&nGg
|
4 B | |
| 003128 | html5lib/namedEntities/2721 html5lib-tests |
⋙̸
|
5 B | |
| 003129 | html5lib/namedEntities/2722 html5lib-tests |
&nGt
|
4 B | |
| 003130 | html5lib/namedEntities/2723 html5lib-tests |
≫⃒
|
5 B | |
| 003131 | html5lib/namedEntities/2724 html5lib-tests |
&nGtv
|
5 B | |
| 003132 | html5lib/namedEntities/2725 html5lib-tests |
≫̸
|
6 B | |
| 003133 | html5lib/namedEntities/2726 html5lib-tests |
&nLeftarrow
|
11 B | |
| 003134 | html5lib/namedEntities/2727 html5lib-tests |
⇍
|
12 B | |
| 003135 | html5lib/namedEntities/2728 html5lib-tests |
&nLeftrightarrow
|
16 B | |
| 003136 | html5lib/namedEntities/2729 html5lib-tests |
⇎
|
17 B | |
| 003137 | html5lib/namedEntities/2730 html5lib-tests |
&nLl
|
4 B | |
| 003138 | html5lib/namedEntities/2731 html5lib-tests |
⋘̸
|
5 B | |
| 003139 | html5lib/namedEntities/2732 html5lib-tests |
&nLt
|
4 B | |
| 003140 | html5lib/namedEntities/2733 html5lib-tests |
≪⃒
|
5 B | |
| 003141 | html5lib/namedEntities/2734 html5lib-tests |
&nLtv
|
5 B | |
| 003142 | html5lib/namedEntities/2735 html5lib-tests |
≪̸
|
6 B | |
| 003143 | html5lib/namedEntities/2736 html5lib-tests |
&nRightarrow
|
12 B | |
| 003144 | html5lib/namedEntities/2737 html5lib-tests |
⇏
|
13 B | |
| 003145 | html5lib/namedEntities/2738 html5lib-tests |
&nVDash
|
7 B | |
| 003146 | html5lib/namedEntities/2739 html5lib-tests |
⊯
|
8 B | |
| 003147 | html5lib/namedEntities/2740 html5lib-tests |
&nVdash
|
7 B | |
| 003148 | html5lib/namedEntities/2741 html5lib-tests |
⊮
|
8 B | |
| 003149 | html5lib/namedEntities/2742 html5lib-tests |
&nabla
|
6 B | |
| 003150 | html5lib/namedEntities/2743 html5lib-tests |
∇
|
7 B | |
| 003151 | html5lib/namedEntities/2744 html5lib-tests |
&nacute
|
7 B | |
| 003152 | html5lib/namedEntities/2745 html5lib-tests |
ń
|
8 B | |
| 003153 | html5lib/namedEntities/2746 html5lib-tests |
&nang
|
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