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
5,931 of 6,835 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 001654 | html5lib/namedEntities/1247 html5lib-tests |
∠
|
7 B | |
| 001655 | html5lib/namedEntities/1248 html5lib-tests |
&angmsd
|
7 B | |
| 001656 | html5lib/namedEntities/1249 html5lib-tests |
∡
|
8 B | |
| 001657 | html5lib/namedEntities/1250 html5lib-tests |
&angmsdaa
|
9 B | |
| 001658 | html5lib/namedEntities/1251 html5lib-tests |
⦨
|
10 B | |
| 001659 | html5lib/namedEntities/1252 html5lib-tests |
&angmsdab
|
9 B | |
| 001660 | html5lib/namedEntities/1253 html5lib-tests |
⦩
|
10 B | |
| 001661 | html5lib/namedEntities/1254 html5lib-tests |
&angmsdac
|
9 B | |
| 001662 | html5lib/namedEntities/1255 html5lib-tests |
⦪
|
10 B | |
| 001663 | html5lib/namedEntities/1256 html5lib-tests |
&angmsdad
|
9 B | |
| 001664 | html5lib/namedEntities/1257 html5lib-tests |
⦫
|
10 B | |
| 001665 | html5lib/namedEntities/1258 html5lib-tests |
&angmsdae
|
9 B | |
| 001666 | html5lib/namedEntities/1259 html5lib-tests |
⦬
|
10 B | |
| 001667 | html5lib/namedEntities/1260 html5lib-tests |
&angmsdaf
|
9 B | |
| 001668 | html5lib/namedEntities/1261 html5lib-tests |
⦭
|
10 B | |
| 001669 | html5lib/namedEntities/1262 html5lib-tests |
&angmsdag
|
9 B | |
| 001670 | html5lib/namedEntities/1263 html5lib-tests |
⦮
|
10 B | |
| 001671 | html5lib/namedEntities/1264 html5lib-tests |
&angmsdah
|
9 B | |
| 001672 | html5lib/namedEntities/1265 html5lib-tests |
⦯
|
10 B | |
| 001673 | html5lib/namedEntities/1266 html5lib-tests |
&angrt
|
6 B | |
| 001674 | html5lib/namedEntities/1267 html5lib-tests |
∟
|
7 B | |
| 001675 | html5lib/namedEntities/1268 html5lib-tests |
&angrtvb
|
8 B | |
| 001676 | html5lib/namedEntities/1269 html5lib-tests |
⊾
|
9 B | |
| 001677 | html5lib/namedEntities/1270 html5lib-tests |
&angrtvbd
|
9 B | |
| 001678 | html5lib/namedEntities/1271 html5lib-tests |
⦝
|
10 B | |
| 001679 | html5lib/namedEntities/1272 html5lib-tests |
&angsph
|
7 B | |
| 001680 | html5lib/namedEntities/1273 html5lib-tests |
∢
|
8 B | |
| 001681 | html5lib/namedEntities/1274 html5lib-tests |
&angst
|
6 B | |
| 001682 | html5lib/namedEntities/1275 html5lib-tests |
Å
|
7 B | |
| 001683 | html5lib/namedEntities/1276 html5lib-tests |
&angzarr
|
8 B | |
| 001684 | html5lib/namedEntities/1277 html5lib-tests |
⍼
|
9 B | |
| 001685 | html5lib/namedEntities/1278 html5lib-tests |
&aogon
|
6 B | |
| 001686 | html5lib/namedEntities/1279 html5lib-tests |
ą
|
7 B | |
| 001687 | html5lib/namedEntities/1280 html5lib-tests |
&aopf
|
5 B | |
| 001688 | html5lib/namedEntities/1281 html5lib-tests |
𝕒
|
6 B | |
| 001689 | html5lib/namedEntities/1282 html5lib-tests |
&ap
|
3 B | |
| 001690 | html5lib/namedEntities/1283 html5lib-tests |
≈
|
4 B | |
| 001691 | html5lib/namedEntities/1284 html5lib-tests |
&apE
|
4 B | |
| 001692 | html5lib/namedEntities/1285 html5lib-tests |
⩰
|
5 B | |
| 001693 | html5lib/namedEntities/1286 html5lib-tests |
&apacir
|
7 B | |
| 001694 | html5lib/namedEntities/1287 html5lib-tests |
⩯
|
8 B | |
| 001695 | html5lib/namedEntities/1288 html5lib-tests |
&ape
|
4 B | |
| 001696 | html5lib/namedEntities/1289 html5lib-tests |
≊
|
5 B | |
| 001697 | html5lib/namedEntities/1290 html5lib-tests |
&apid
|
5 B | |
| 001698 | html5lib/namedEntities/1291 html5lib-tests |
≋
|
6 B | |
| 001699 | html5lib/namedEntities/1292 html5lib-tests |
&apos
|
5 B | |
| 001700 | html5lib/namedEntities/1293 html5lib-tests |
'
|
6 B | |
| 001701 | html5lib/namedEntities/1294 html5lib-tests |
&approx
|
7 B | |
| 001702 | html5lib/namedEntities/1295 html5lib-tests |
≈
|
8 B | |
| 001703 | html5lib/namedEntities/1296 html5lib-tests |
&approxeq
|
9 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