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 |
|---|---|---|---|---|
| 003154 | html5lib/namedEntities/2747 html5lib-tests |
∠⃒
|
6 B | |
| 003155 | html5lib/namedEntities/2748 html5lib-tests |
&nap
|
4 B | |
| 003156 | html5lib/namedEntities/2749 html5lib-tests |
≉
|
5 B | |
| 003157 | html5lib/namedEntities/2750 html5lib-tests |
&napE
|
5 B | |
| 003158 | html5lib/namedEntities/2751 html5lib-tests |
⩰̸
|
6 B | |
| 003159 | html5lib/namedEntities/2752 html5lib-tests |
&napid
|
6 B | |
| 003160 | html5lib/namedEntities/2753 html5lib-tests |
≋̸
|
7 B | |
| 003161 | html5lib/namedEntities/2754 html5lib-tests |
&napos
|
6 B | |
| 003162 | html5lib/namedEntities/2755 html5lib-tests |
ʼn
|
7 B | |
| 003163 | html5lib/namedEntities/2756 html5lib-tests |
&napprox
|
8 B | |
| 003164 | html5lib/namedEntities/2757 html5lib-tests |
≉
|
9 B | |
| 003165 | html5lib/namedEntities/2758 html5lib-tests |
&natur
|
6 B | |
| 003166 | html5lib/namedEntities/2759 html5lib-tests |
♮
|
7 B | |
| 003167 | html5lib/namedEntities/2760 html5lib-tests |
&natural
|
8 B | |
| 003168 | html5lib/namedEntities/2761 html5lib-tests |
♮
|
9 B | |
| 003169 | html5lib/namedEntities/2762 html5lib-tests |
&naturals
|
9 B | |
| 003170 | html5lib/namedEntities/2763 html5lib-tests |
ℕ
|
10 B | |
| 003171 | html5lib/namedEntities/2764 html5lib-tests |
⟨U+00A0⟩
|
5 B | |
| 003172 | html5lib/namedEntities/2765 html5lib-tests |
⟨U+00A0⟩
|
6 B | |
| 003173 | html5lib/namedEntities/2766 html5lib-tests |
&nbump
|
6 B | |
| 003174 | html5lib/namedEntities/2767 html5lib-tests |
≎̸
|
7 B | |
| 003175 | html5lib/namedEntities/2768 html5lib-tests |
&nbumpe
|
7 B | |
| 003176 | html5lib/namedEntities/2769 html5lib-tests |
≏̸
|
8 B | |
| 003177 | html5lib/namedEntities/2770 html5lib-tests |
&ncap
|
5 B | |
| 003178 | html5lib/namedEntities/2771 html5lib-tests |
⩃
|
6 B | |
| 003179 | html5lib/namedEntities/2772 html5lib-tests |
&ncaron
|
7 B | |
| 003180 | html5lib/namedEntities/2773 html5lib-tests |
ň
|
8 B | |
| 003181 | html5lib/namedEntities/2774 html5lib-tests |
&ncedil
|
7 B | |
| 003182 | html5lib/namedEntities/2775 html5lib-tests |
ņ
|
8 B | |
| 003183 | html5lib/namedEntities/2776 html5lib-tests |
&ncong
|
6 B | |
| 003184 | html5lib/namedEntities/2777 html5lib-tests |
≇
|
7 B | |
| 003185 | html5lib/namedEntities/2778 html5lib-tests |
&ncongdot
|
9 B | |
| 003186 | html5lib/namedEntities/2779 html5lib-tests |
⩭̸
|
10 B | |
| 003187 | html5lib/namedEntities/2780 html5lib-tests |
&ncup
|
5 B | |
| 003188 | html5lib/namedEntities/2781 html5lib-tests |
⩂
|
6 B | |
| 003189 | html5lib/namedEntities/2782 html5lib-tests |
&ncy
|
4 B | |
| 003190 | html5lib/namedEntities/2783 html5lib-tests |
н
|
5 B | |
| 003191 | html5lib/namedEntities/2784 html5lib-tests |
&ndash
|
6 B | |
| 003192 | html5lib/namedEntities/2785 html5lib-tests |
–
|
7 B | |
| 003193 | html5lib/namedEntities/2786 html5lib-tests |
&ne
|
3 B | |
| 003194 | html5lib/namedEntities/2787 html5lib-tests |
≠
|
4 B | |
| 003195 | html5lib/namedEntities/2788 html5lib-tests |
&neArr
|
6 B | |
| 003196 | html5lib/namedEntities/2789 html5lib-tests |
⇗
|
7 B | |
| 003197 | html5lib/namedEntities/2790 html5lib-tests |
&nearhk
|
7 B | |
| 003198 | html5lib/namedEntities/2791 html5lib-tests |
⤤
|
8 B | |
| 003199 | html5lib/namedEntities/2792 html5lib-tests |
&nearr
|
6 B | |
| 003200 | html5lib/namedEntities/2793 html5lib-tests |
↗
|
7 B | |
| 003201 | html5lib/namedEntities/2794 html5lib-tests |
&nearrow
|
8 B | |
| 003202 | html5lib/namedEntities/2795 html5lib-tests |
↗
|
9 B | |
| 003203 | html5lib/namedEntities/2796 html5lib-tests |
&nedot
|
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