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 |
|---|---|---|---|---|
| 002750 | html5lib/namedEntities/2343 html5lib-tests |
&kgreen
|
7 B | |
| 002751 | html5lib/namedEntities/2344 html5lib-tests |
ĸ
|
8 B | |
| 002752 | html5lib/namedEntities/2345 html5lib-tests |
&khcy
|
5 B | |
| 002753 | html5lib/namedEntities/2346 html5lib-tests |
х
|
6 B | |
| 002754 | html5lib/namedEntities/2347 html5lib-tests |
&kjcy
|
5 B | |
| 002755 | html5lib/namedEntities/2348 html5lib-tests |
ќ
|
6 B | |
| 002756 | html5lib/namedEntities/2349 html5lib-tests |
&kopf
|
5 B | |
| 002757 | html5lib/namedEntities/2350 html5lib-tests |
𝕜
|
6 B | |
| 002758 | html5lib/namedEntities/2351 html5lib-tests |
&kscr
|
5 B | |
| 002759 | html5lib/namedEntities/2352 html5lib-tests |
𝓀
|
6 B | |
| 002760 | html5lib/namedEntities/2353 html5lib-tests |
&lAarr
|
6 B | |
| 002761 | html5lib/namedEntities/2354 html5lib-tests |
⇚
|
7 B | |
| 002762 | html5lib/namedEntities/2355 html5lib-tests |
&lArr
|
5 B | |
| 002763 | html5lib/namedEntities/2356 html5lib-tests |
⇐
|
6 B | |
| 002764 | html5lib/namedEntities/2357 html5lib-tests |
&lAtail
|
7 B | |
| 002765 | html5lib/namedEntities/2358 html5lib-tests |
⤛
|
8 B | |
| 002766 | html5lib/namedEntities/2359 html5lib-tests |
&lBarr
|
6 B | |
| 002767 | html5lib/namedEntities/2360 html5lib-tests |
⤎
|
7 B | |
| 002768 | html5lib/namedEntities/2361 html5lib-tests |
&lE
|
3 B | |
| 002769 | html5lib/namedEntities/2362 html5lib-tests |
≦
|
4 B | |
| 002770 | html5lib/namedEntities/2363 html5lib-tests |
&lEg
|
4 B | |
| 002771 | html5lib/namedEntities/2364 html5lib-tests |
⪋
|
5 B | |
| 002772 | html5lib/namedEntities/2365 html5lib-tests |
&lHar
|
5 B | |
| 002773 | html5lib/namedEntities/2366 html5lib-tests |
⥢
|
6 B | |
| 002774 | html5lib/namedEntities/2367 html5lib-tests |
&lacute
|
7 B | |
| 002775 | html5lib/namedEntities/2368 html5lib-tests |
ĺ
|
8 B | |
| 002776 | html5lib/namedEntities/2369 html5lib-tests |
&laemptyv
|
9 B | |
| 002777 | html5lib/namedEntities/2370 html5lib-tests |
⦴
|
10 B | |
| 002778 | html5lib/namedEntities/2371 html5lib-tests |
&lagran
|
7 B | |
| 002779 | html5lib/namedEntities/2372 html5lib-tests |
ℒ
|
8 B | |
| 002780 | html5lib/namedEntities/2373 html5lib-tests |
&lambda
|
7 B | |
| 002781 | html5lib/namedEntities/2374 html5lib-tests |
λ
|
8 B | |
| 002782 | html5lib/namedEntities/2375 html5lib-tests |
&lang
|
5 B | |
| 002783 | html5lib/namedEntities/2376 html5lib-tests |
⟨
|
6 B | |
| 002784 | html5lib/namedEntities/2377 html5lib-tests |
&langd
|
6 B | |
| 002785 | html5lib/namedEntities/2378 html5lib-tests |
⦑
|
7 B | |
| 002786 | html5lib/namedEntities/2379 html5lib-tests |
&langle
|
7 B | |
| 002787 | html5lib/namedEntities/2380 html5lib-tests |
⟨
|
8 B | |
| 002788 | html5lib/namedEntities/2381 html5lib-tests |
&lap
|
4 B | |
| 002789 | html5lib/namedEntities/2382 html5lib-tests |
⪅
|
5 B | |
| 002790 | html5lib/namedEntities/2383 html5lib-tests |
«
|
6 B | |
| 002791 | html5lib/namedEntities/2384 html5lib-tests |
«
|
7 B | |
| 002792 | html5lib/namedEntities/2385 html5lib-tests |
&larr
|
5 B | |
| 002793 | html5lib/namedEntities/2386 html5lib-tests |
←
|
6 B | |
| 002794 | html5lib/namedEntities/2387 html5lib-tests |
&larrb
|
6 B | |
| 002795 | html5lib/namedEntities/2388 html5lib-tests |
⇤
|
7 B | |
| 002796 | html5lib/namedEntities/2389 html5lib-tests |
&larrbfs
|
8 B | |
| 002797 | html5lib/namedEntities/2390 html5lib-tests |
⤟
|
9 B | |
| 002798 | html5lib/namedEntities/2391 html5lib-tests |
&larrfs
|
7 B | |
| 002799 | html5lib/namedEntities/2392 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