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 |
|---|---|---|---|---|
| 002550 | html5lib/namedEntities/2143 html5lib-tests |
>
|
3 B | |
| 002551 | html5lib/namedEntities/2144 html5lib-tests |
>
|
4 B | |
| 002552 | html5lib/namedEntities/2145 html5lib-tests |
⪧
|
6 B | |
| 002553 | html5lib/namedEntities/2146 html5lib-tests |
⩺
|
7 B | |
| 002554 | html5lib/namedEntities/2147 html5lib-tests |
⋗
|
7 B | |
| 002555 | html5lib/namedEntities/2148 html5lib-tests |
⦕
|
8 B | |
| 002556 | html5lib/namedEntities/2149 html5lib-tests |
⩼
|
9 B | |
| 002557 | html5lib/namedEntities/2150 html5lib-tests |
⪆
|
11 B | |
| 002558 | html5lib/namedEntities/2151 html5lib-tests |
⥸
|
8 B | |
| 002559 | html5lib/namedEntities/2152 html5lib-tests |
⋗
|
8 B | |
| 002560 | html5lib/namedEntities/2153 html5lib-tests |
⋛
|
11 B | |
| 002561 | html5lib/namedEntities/2154 html5lib-tests |
⪌
|
12 B | |
| 002562 | html5lib/namedEntities/2155 html5lib-tests |
≷
|
9 B | |
| 002563 | html5lib/namedEntities/2156 html5lib-tests |
≳
|
8 B | |
| 002564 | html5lib/namedEntities/2157 html5lib-tests |
&gvertneqq
|
10 B | |
| 002565 | html5lib/namedEntities/2158 html5lib-tests |
≩︀
|
11 B | |
| 002566 | html5lib/namedEntities/2159 html5lib-tests |
&gvnE
|
5 B | |
| 002567 | html5lib/namedEntities/2160 html5lib-tests |
≩︀
|
6 B | |
| 002568 | html5lib/namedEntities/2161 html5lib-tests |
&hArr
|
5 B | |
| 002569 | html5lib/namedEntities/2162 html5lib-tests |
⇔
|
6 B | |
| 002570 | html5lib/namedEntities/2163 html5lib-tests |
&hairsp
|
7 B | |
| 002571 | html5lib/namedEntities/2164 html5lib-tests |
|
8 B | |
| 002572 | html5lib/namedEntities/2165 html5lib-tests |
&half
|
5 B | |
| 002573 | html5lib/namedEntities/2166 html5lib-tests |
½
|
6 B | |
| 002574 | html5lib/namedEntities/2167 html5lib-tests |
&hamilt
|
7 B | |
| 002575 | html5lib/namedEntities/2168 html5lib-tests |
ℋ
|
8 B | |
| 002576 | html5lib/namedEntities/2169 html5lib-tests |
&hardcy
|
7 B | |
| 002577 | html5lib/namedEntities/2170 html5lib-tests |
ъ
|
8 B | |
| 002578 | html5lib/namedEntities/2171 html5lib-tests |
&harr
|
5 B | |
| 002579 | html5lib/namedEntities/2172 html5lib-tests |
↔
|
6 B | |
| 002580 | html5lib/namedEntities/2173 html5lib-tests |
&harrcir
|
8 B | |
| 002581 | html5lib/namedEntities/2174 html5lib-tests |
⥈
|
9 B | |
| 002582 | html5lib/namedEntities/2175 html5lib-tests |
&harrw
|
6 B | |
| 002583 | html5lib/namedEntities/2176 html5lib-tests |
↭
|
7 B | |
| 002584 | html5lib/namedEntities/2177 html5lib-tests |
&hbar
|
5 B | |
| 002585 | html5lib/namedEntities/2178 html5lib-tests |
ℏ
|
6 B | |
| 002586 | html5lib/namedEntities/2179 html5lib-tests |
&hcirc
|
6 B | |
| 002587 | html5lib/namedEntities/2180 html5lib-tests |
ĥ
|
7 B | |
| 002588 | html5lib/namedEntities/2181 html5lib-tests |
&hearts
|
7 B | |
| 002589 | html5lib/namedEntities/2182 html5lib-tests |
♥
|
8 B | |
| 002590 | html5lib/namedEntities/2183 html5lib-tests |
&heartsuit
|
10 B | |
| 002591 | html5lib/namedEntities/2184 html5lib-tests |
♥
|
11 B | |
| 002592 | html5lib/namedEntities/2185 html5lib-tests |
&hellip
|
7 B | |
| 002593 | html5lib/namedEntities/2186 html5lib-tests |
…
|
8 B | |
| 002594 | html5lib/namedEntities/2187 html5lib-tests |
&hercon
|
7 B | |
| 002595 | html5lib/namedEntities/2188 html5lib-tests |
⊹
|
8 B | |
| 002596 | html5lib/namedEntities/2189 html5lib-tests |
&hfr
|
4 B | |
| 002597 | html5lib/namedEntities/2190 html5lib-tests |
𝔥
|
5 B | |
| 002598 | html5lib/namedEntities/2191 html5lib-tests |
&hksearow
|
9 B | |
| 002599 | html5lib/namedEntities/2192 html5lib-tests |
⤥
|
10 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