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
35 of 6,835 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 004749 | range-d7ff Focused regression |
|
8 B | |
| 004750 | range-d800 Focused regression |
�
|
8 B | |
| 004751 | range-dbff Focused regression |
�
|
8 B | |
| 004752 | range-dc00 Focused regression |
�
|
8 B | |
| 004753 | range-dfff Focused regression |
�
|
8 B | |
| 004754 | range-e000 Focused regression |
|
8 B | |
| 004755 | range-10ffff Focused regression |
⟨U+10FFFF⟩
|
10 B | |
| 004756 | range-110000 Focused regression |
�
|
10 B | |
| 004757 | range-ffffffff Focused regression |
�
|
12 B | |
| 004758 | range-100000000 Focused regression |
�
|
13 B | |
| 004759 | zero-decimal Focused regression |
�
|
4 B | |
| 004760 | zero-hex-many Focused regression |
�
|
14 B | |
| 004761 | overflow-decimal Focused regression |
�
|
43 B | |
| 004762 | overflow-hex Focused regression |
�
|
43 B | |
| 004763 | overflow-wrap32-41-decimal Focused regression |
�
|
13 B | |
| 004764 | overflow-wrap32-41-hex Focused regression |
�
|
12 B | |
| 004765 | overflow-wrap32-29-decimal Focused regression |
�
|
13 B | |
| 004766 | overflow-wrap32-29-hex Focused regression |
�
|
12 B | |
| 004767 | overflow-wrap32-0a-decimal Focused regression |
�
|
13 B | |
| 004768 | overflow-wrap32-0a-hex Focused regression |
�
|
12 B | |
| 004769 | overflow-wrap32-80-decimal Focused regression |
�
|
13 B | |
| 004770 | overflow-wrap32-80-hex Focused regression |
�
|
12 B | |
| 004771 | overflow-wrap32-e9-decimal Focused regression |
�
|
13 B | |
| 004772 | overflow-wrap32-e9-hex Focused regression |
�
|
12 B | |
| 004773 | overflow-wrap64-41-decimal Focused regression |
�
|
23 B | |
| 004774 | overflow-wrap64-41-hex Focused regression |
�
|
20 B | |
| 004775 | overflow-wrap64-29-decimal Focused regression |
�
|
23 B | |
| 004776 | overflow-wrap64-29-hex Focused regression |
�
|
20 B | |
| 004777 | overflow-wrap64-0a-decimal Focused regression |
�
|
23 B | |
| 004778 | overflow-wrap64-0a-hex Focused regression |
�
|
20 B | |
| 004779 | overflow-wrap64-80-decimal Focused regression |
�
|
23 B | |
| 004780 | overflow-wrap64-80-hex Focused regression |
�
|
20 B | |
| 004781 | overflow-wrap64-e9-decimal Focused regression |
�
|
23 B | |
| 004782 | overflow-wrap64-e9-hex Focused regression |
�
|
20 B | |
| 004828 | zero-width Focused regression |
⟨U+200D⟩⟨U+200C⟩⟨U+200B⟩⟨U+2060⟩
|
36 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