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 |
|---|---|---|---|---|
| 001754 | html5lib/namedEntities/1347 html5lib-tests |
∵
|
9 B | |
| 001755 | html5lib/namedEntities/1348 html5lib-tests |
&bemptyv
|
8 B | |
| 001756 | html5lib/namedEntities/1349 html5lib-tests |
⦰
|
9 B | |
| 001757 | html5lib/namedEntities/1350 html5lib-tests |
&bepsi
|
6 B | |
| 001758 | html5lib/namedEntities/1351 html5lib-tests |
϶
|
7 B | |
| 001759 | html5lib/namedEntities/1352 html5lib-tests |
&bernou
|
7 B | |
| 001760 | html5lib/namedEntities/1353 html5lib-tests |
ℬ
|
8 B | |
| 001761 | html5lib/namedEntities/1354 html5lib-tests |
&beta
|
5 B | |
| 001762 | html5lib/namedEntities/1355 html5lib-tests |
β
|
6 B | |
| 001763 | html5lib/namedEntities/1356 html5lib-tests |
&beth
|
5 B | |
| 001764 | html5lib/namedEntities/1357 html5lib-tests |
ℶ
|
6 B | |
| 001765 | html5lib/namedEntities/1358 html5lib-tests |
&between
|
8 B | |
| 001766 | html5lib/namedEntities/1359 html5lib-tests |
≬
|
9 B | |
| 001767 | html5lib/namedEntities/1360 html5lib-tests |
&bfr
|
4 B | |
| 001768 | html5lib/namedEntities/1361 html5lib-tests |
𝔟
|
5 B | |
| 001769 | html5lib/namedEntities/1362 html5lib-tests |
&bigcap
|
7 B | |
| 001770 | html5lib/namedEntities/1363 html5lib-tests |
⋂
|
8 B | |
| 001771 | html5lib/namedEntities/1364 html5lib-tests |
&bigcirc
|
8 B | |
| 001772 | html5lib/namedEntities/1365 html5lib-tests |
◯
|
9 B | |
| 001773 | html5lib/namedEntities/1366 html5lib-tests |
&bigcup
|
7 B | |
| 001774 | html5lib/namedEntities/1367 html5lib-tests |
⋃
|
8 B | |
| 001775 | html5lib/namedEntities/1368 html5lib-tests |
&bigodot
|
8 B | |
| 001776 | html5lib/namedEntities/1369 html5lib-tests |
⨀
|
9 B | |
| 001777 | html5lib/namedEntities/1370 html5lib-tests |
&bigoplus
|
9 B | |
| 001778 | html5lib/namedEntities/1371 html5lib-tests |
⨁
|
10 B | |
| 001779 | html5lib/namedEntities/1372 html5lib-tests |
&bigotimes
|
10 B | |
| 001780 | html5lib/namedEntities/1373 html5lib-tests |
⨂
|
11 B | |
| 001781 | html5lib/namedEntities/1374 html5lib-tests |
&bigsqcup
|
9 B | |
| 001782 | html5lib/namedEntities/1375 html5lib-tests |
⨆
|
10 B | |
| 001783 | html5lib/namedEntities/1376 html5lib-tests |
&bigstar
|
8 B | |
| 001784 | html5lib/namedEntities/1377 html5lib-tests |
★
|
9 B | |
| 001785 | html5lib/namedEntities/1378 html5lib-tests |
&bigtriangledown
|
16 B | |
| 001786 | html5lib/namedEntities/1379 html5lib-tests |
▽
|
17 B | |
| 001787 | html5lib/namedEntities/1380 html5lib-tests |
&bigtriangleup
|
14 B | |
| 001788 | html5lib/namedEntities/1381 html5lib-tests |
△
|
15 B | |
| 001789 | html5lib/namedEntities/1382 html5lib-tests |
&biguplus
|
9 B | |
| 001790 | html5lib/namedEntities/1383 html5lib-tests |
⨄
|
10 B | |
| 001791 | html5lib/namedEntities/1384 html5lib-tests |
&bigvee
|
7 B | |
| 001792 | html5lib/namedEntities/1385 html5lib-tests |
⋁
|
8 B | |
| 001793 | html5lib/namedEntities/1386 html5lib-tests |
&bigwedge
|
9 B | |
| 001794 | html5lib/namedEntities/1387 html5lib-tests |
⋀
|
10 B | |
| 001795 | html5lib/namedEntities/1388 html5lib-tests |
&bkarow
|
7 B | |
| 001796 | html5lib/namedEntities/1389 html5lib-tests |
⤍
|
8 B | |
| 001797 | html5lib/namedEntities/1390 html5lib-tests |
&blacklozenge
|
13 B | |
| 001798 | html5lib/namedEntities/1391 html5lib-tests |
⧫
|
14 B | |
| 001799 | html5lib/namedEntities/1392 html5lib-tests |
&blacksquare
|
12 B | |
| 001800 | html5lib/namedEntities/1393 html5lib-tests |
▪
|
13 B | |
| 001801 | html5lib/namedEntities/1394 html5lib-tests |
&blacktriangle
|
14 B | |
| 001802 | html5lib/namedEntities/1395 html5lib-tests |
▴
|
15 B | |
| 001803 | html5lib/namedEntities/1396 html5lib-tests |
&blacktriangledown
|
18 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