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
2,241 of 6,835 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 000053 | html5lib/entities/0062 html5lib-tests |
’
|
7 B | |
| 000054 | html5lib/entities/0063 html5lib-tests |
“
|
7 B | |
| 000055 | html5lib/entities/0064 html5lib-tests |
”
|
7 B | |
| 000056 | html5lib/entities/0065 html5lib-tests |
•
|
7 B | |
| 000057 | html5lib/entities/0066 html5lib-tests |
–
|
7 B | |
| 000058 | html5lib/entities/0067 html5lib-tests |
—
|
7 B | |
| 000059 | html5lib/entities/0068 html5lib-tests |
˜
|
7 B | |
| 000060 | html5lib/entities/0069 html5lib-tests |
™
|
7 B | |
| 000061 | html5lib/entities/0070 html5lib-tests |
š
|
7 B | |
| 000062 | html5lib/entities/0071 html5lib-tests |
›
|
7 B | |
| 000063 | html5lib/entities/0072 html5lib-tests |
œ
|
7 B | |
| 000064 | html5lib/entities/0073 html5lib-tests |
⟨U+009D⟩
|
7 B | |
| 000065 | html5lib/entities/0074 html5lib-tests |
ž
|
7 B | |
| 000066 | html5lib/entities/0075 html5lib-tests |
Ÿ
|
7 B | |
| 000067 | html5lib/entities/0076 html5lib-tests |
aa
|
5 B | |
| 000068 | html5lib/entities/0077 html5lib-tests |
aA
|
5 B | |
| 000069 | html5lib/entities/0078 html5lib-tests |
af
|
5 B | |
| 000070 | html5lib/entities/0079 html5lib-tests |
aF
|
5 B | |
| 000071 | html5lib/numericEntities/0000 html5lib-tests |
�
|
13 B | |
| 000072 | html5lib/numericEntities/0001 html5lib-tests |
�
|
12 B | |
| 000073 | html5lib/numericEntities/0002 html5lib-tests |
�
|
14 B | |
| 000074 | html5lib/numericEntities/0003 html5lib-tests |
�x
|
14 B | |
| 000075 | html5lib/numericEntities/0004 html5lib-tests |
�x
|
13 B | |
| 000076 | html5lib/numericEntities/0005 html5lib-tests |
�x
|
15 B | |
| 000077 | html5lib/numericEntities/0006 html5lib-tests |
�
|
14 B | |
| 000078 | html5lib/numericEntities/0007 html5lib-tests |
�
|
13 B | |
| 000079 | html5lib/numericEntities/0008 html5lib-tests |
�
|
15 B | |
| 000080 | html5lib/numericEntities/0009 html5lib-tests |
�
|
8 B | |
| 000081 | html5lib/numericEntities/0010 html5lib-tests |
␁
|
8 B | |
| 000082 | html5lib/numericEntities/0011 html5lib-tests |
␂
|
8 B | |
| 000083 | html5lib/numericEntities/0012 html5lib-tests |
␃
|
8 B | |
| 000084 | html5lib/numericEntities/0013 html5lib-tests |
␄
|
8 B | |
| 000085 | html5lib/numericEntities/0014 html5lib-tests |
␅
|
8 B | |
| 000086 | html5lib/numericEntities/0015 html5lib-tests |
␆
|
8 B | |
| 000087 | html5lib/numericEntities/0016 html5lib-tests |
␇
|
8 B | |
| 000088 | html5lib/numericEntities/0017 html5lib-tests |
␈
|
8 B | |
| 000089 | html5lib/numericEntities/0018 html5lib-tests |
␋
|
8 B | |
| 000090 | html5lib/numericEntities/0019 html5lib-tests |
␎
|
8 B | |
| 000091 | html5lib/numericEntities/0020 html5lib-tests |
␏
|
8 B | |
| 000092 | html5lib/numericEntities/0021 html5lib-tests |
␐
|
8 B | |
| 000093 | html5lib/numericEntities/0022 html5lib-tests |
␑
|
8 B | |
| 000094 | html5lib/numericEntities/0023 html5lib-tests |
␒
|
8 B | |
| 000095 | html5lib/numericEntities/0024 html5lib-tests |
␓
|
8 B | |
| 000096 | html5lib/numericEntities/0025 html5lib-tests |
␔
|
8 B | |
| 000097 | html5lib/numericEntities/0026 html5lib-tests |
␕
|
8 B | |
| 000098 | html5lib/numericEntities/0027 html5lib-tests |
␖
|
8 B | |
| 000099 | html5lib/numericEntities/0028 html5lib-tests |
␗
|
8 B | |
| 000100 | html5lib/numericEntities/0029 html5lib-tests |
␘
|
8 B | |
| 000101 | html5lib/numericEntities/0030 html5lib-tests |
␙
|
8 B | |
| 000102 | html5lib/numericEntities/0031 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