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 |
|---|---|---|---|---|
| 002650 | html5lib/namedEntities/2243 html5lib-tests |
&iiota
|
6 B | |
| 002651 | html5lib/namedEntities/2244 html5lib-tests |
℩
|
7 B | |
| 002652 | html5lib/namedEntities/2245 html5lib-tests |
&ijlig
|
6 B | |
| 002653 | html5lib/namedEntities/2246 html5lib-tests |
ij
|
7 B | |
| 002654 | html5lib/namedEntities/2247 html5lib-tests |
&imacr
|
6 B | |
| 002655 | html5lib/namedEntities/2248 html5lib-tests |
ī
|
7 B | |
| 002656 | html5lib/namedEntities/2249 html5lib-tests |
&image
|
6 B | |
| 002657 | html5lib/namedEntities/2250 html5lib-tests |
ℑ
|
7 B | |
| 002658 | html5lib/namedEntities/2251 html5lib-tests |
&imagline
|
9 B | |
| 002659 | html5lib/namedEntities/2252 html5lib-tests |
ℐ
|
10 B | |
| 002660 | html5lib/namedEntities/2253 html5lib-tests |
&imagpart
|
9 B | |
| 002661 | html5lib/namedEntities/2254 html5lib-tests |
ℑ
|
10 B | |
| 002662 | html5lib/namedEntities/2255 html5lib-tests |
&imath
|
6 B | |
| 002663 | html5lib/namedEntities/2256 html5lib-tests |
ı
|
7 B | |
| 002664 | html5lib/namedEntities/2257 html5lib-tests |
&imof
|
5 B | |
| 002665 | html5lib/namedEntities/2258 html5lib-tests |
⊷
|
6 B | |
| 002666 | html5lib/namedEntities/2259 html5lib-tests |
&imped
|
6 B | |
| 002667 | html5lib/namedEntities/2260 html5lib-tests |
Ƶ
|
7 B | |
| 002668 | html5lib/namedEntities/2261 html5lib-tests |
&in
|
3 B | |
| 002669 | html5lib/namedEntities/2262 html5lib-tests |
∈
|
4 B | |
| 002670 | html5lib/namedEntities/2263 html5lib-tests |
&incare
|
7 B | |
| 002671 | html5lib/namedEntities/2264 html5lib-tests |
℅
|
8 B | |
| 002672 | html5lib/namedEntities/2265 html5lib-tests |
&infin
|
6 B | |
| 002673 | html5lib/namedEntities/2266 html5lib-tests |
∞
|
7 B | |
| 002674 | html5lib/namedEntities/2267 html5lib-tests |
&infintie
|
9 B | |
| 002675 | html5lib/namedEntities/2268 html5lib-tests |
⧝
|
10 B | |
| 002676 | html5lib/namedEntities/2269 html5lib-tests |
&inodot
|
7 B | |
| 002677 | html5lib/namedEntities/2270 html5lib-tests |
ı
|
8 B | |
| 002678 | html5lib/namedEntities/2271 html5lib-tests |
&int
|
4 B | |
| 002679 | html5lib/namedEntities/2272 html5lib-tests |
∫
|
5 B | |
| 002680 | html5lib/namedEntities/2273 html5lib-tests |
&intcal
|
7 B | |
| 002681 | html5lib/namedEntities/2274 html5lib-tests |
⊺
|
8 B | |
| 002682 | html5lib/namedEntities/2275 html5lib-tests |
&integers
|
9 B | |
| 002683 | html5lib/namedEntities/2276 html5lib-tests |
ℤ
|
10 B | |
| 002684 | html5lib/namedEntities/2277 html5lib-tests |
&intercal
|
9 B | |
| 002685 | html5lib/namedEntities/2278 html5lib-tests |
⊺
|
10 B | |
| 002686 | html5lib/namedEntities/2279 html5lib-tests |
&intlarhk
|
9 B | |
| 002687 | html5lib/namedEntities/2280 html5lib-tests |
⨗
|
10 B | |
| 002688 | html5lib/namedEntities/2281 html5lib-tests |
&intprod
|
8 B | |
| 002689 | html5lib/namedEntities/2282 html5lib-tests |
⨼
|
9 B | |
| 002690 | html5lib/namedEntities/2283 html5lib-tests |
&iocy
|
5 B | |
| 002691 | html5lib/namedEntities/2284 html5lib-tests |
ё
|
6 B | |
| 002692 | html5lib/namedEntities/2285 html5lib-tests |
&iogon
|
6 B | |
| 002693 | html5lib/namedEntities/2286 html5lib-tests |
į
|
7 B | |
| 002694 | html5lib/namedEntities/2287 html5lib-tests |
&iopf
|
5 B | |
| 002695 | html5lib/namedEntities/2288 html5lib-tests |
𝕚
|
6 B | |
| 002696 | html5lib/namedEntities/2289 html5lib-tests |
&iota
|
5 B | |
| 002697 | html5lib/namedEntities/2290 html5lib-tests |
ι
|
6 B | |
| 002698 | html5lib/namedEntities/2291 html5lib-tests |
&iprod
|
6 B | |
| 002699 | html5lib/namedEntities/2292 html5lib-tests |
⨼
|
7 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