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 |
|---|---|---|---|---|
| 000854 | html5lib/namedEntities/0447 html5lib-tests |
𝕂
|
6 B | |
| 000855 | html5lib/namedEntities/0448 html5lib-tests |
&Kscr
|
5 B | |
| 000856 | html5lib/namedEntities/0449 html5lib-tests |
𝒦
|
6 B | |
| 000857 | html5lib/namedEntities/0450 html5lib-tests |
&LJcy
|
5 B | |
| 000858 | html5lib/namedEntities/0451 html5lib-tests |
Љ
|
6 B | |
| 000859 | html5lib/namedEntities/0452 html5lib-tests |
<
|
3 B | |
| 000860 | html5lib/namedEntities/0453 html5lib-tests |
<
|
4 B | |
| 000861 | html5lib/namedEntities/0454 html5lib-tests |
&Lacute
|
7 B | |
| 000862 | html5lib/namedEntities/0455 html5lib-tests |
Ĺ
|
8 B | |
| 000863 | html5lib/namedEntities/0456 html5lib-tests |
&Lambda
|
7 B | |
| 000864 | html5lib/namedEntities/0457 html5lib-tests |
Λ
|
8 B | |
| 000865 | html5lib/namedEntities/0458 html5lib-tests |
&Lang
|
5 B | |
| 000866 | html5lib/namedEntities/0459 html5lib-tests |
⟪
|
6 B | |
| 000867 | html5lib/namedEntities/0460 html5lib-tests |
&Laplacetrf
|
11 B | |
| 000868 | html5lib/namedEntities/0461 html5lib-tests |
ℒ
|
12 B | |
| 000869 | html5lib/namedEntities/0462 html5lib-tests |
&Larr
|
5 B | |
| 000870 | html5lib/namedEntities/0463 html5lib-tests |
↞
|
6 B | |
| 000871 | html5lib/namedEntities/0464 html5lib-tests |
&Lcaron
|
7 B | |
| 000872 | html5lib/namedEntities/0465 html5lib-tests |
Ľ
|
8 B | |
| 000873 | html5lib/namedEntities/0466 html5lib-tests |
&Lcedil
|
7 B | |
| 000874 | html5lib/namedEntities/0467 html5lib-tests |
Ļ
|
8 B | |
| 000875 | html5lib/namedEntities/0468 html5lib-tests |
&Lcy
|
4 B | |
| 000876 | html5lib/namedEntities/0469 html5lib-tests |
Л
|
5 B | |
| 000877 | html5lib/namedEntities/0470 html5lib-tests |
&LeftAngleBracket
|
17 B | |
| 000878 | html5lib/namedEntities/0471 html5lib-tests |
⟨
|
18 B | |
| 000879 | html5lib/namedEntities/0472 html5lib-tests |
&LeftArrow
|
10 B | |
| 000880 | html5lib/namedEntities/0473 html5lib-tests |
←
|
11 B | |
| 000881 | html5lib/namedEntities/0474 html5lib-tests |
&LeftArrowBar
|
13 B | |
| 000882 | html5lib/namedEntities/0475 html5lib-tests |
⇤
|
14 B | |
| 000883 | html5lib/namedEntities/0476 html5lib-tests |
&LeftArrowRightArrow
|
20 B | |
| 000884 | html5lib/namedEntities/0477 html5lib-tests |
⇆
|
21 B | |
| 000885 | html5lib/namedEntities/0478 html5lib-tests |
&LeftCeiling
|
12 B | |
| 000886 | html5lib/namedEntities/0479 html5lib-tests |
⌈
|
13 B | |
| 000887 | html5lib/namedEntities/0480 html5lib-tests |
&LeftDoubleBracket
|
18 B | |
| 000888 | html5lib/namedEntities/0481 html5lib-tests |
⟦
|
19 B | |
| 000889 | html5lib/namedEntities/0482 html5lib-tests |
&LeftDownTeeVector
|
18 B | |
| 000890 | html5lib/namedEntities/0483 html5lib-tests |
⥡
|
19 B | |
| 000891 | html5lib/namedEntities/0484 html5lib-tests |
&LeftDownVector
|
15 B | |
| 000892 | html5lib/namedEntities/0485 html5lib-tests |
⇃
|
16 B | |
| 000893 | html5lib/namedEntities/0486 html5lib-tests |
&LeftDownVectorBar
|
18 B | |
| 000894 | html5lib/namedEntities/0487 html5lib-tests |
⥙
|
19 B | |
| 000895 | html5lib/namedEntities/0488 html5lib-tests |
&LeftFloor
|
10 B | |
| 000896 | html5lib/namedEntities/0489 html5lib-tests |
⌊
|
11 B | |
| 000897 | html5lib/namedEntities/0490 html5lib-tests |
&LeftRightArrow
|
15 B | |
| 000898 | html5lib/namedEntities/0491 html5lib-tests |
↔
|
16 B | |
| 000899 | html5lib/namedEntities/0492 html5lib-tests |
&LeftRightVector
|
16 B | |
| 000900 | html5lib/namedEntities/0493 html5lib-tests |
⥎
|
17 B | |
| 000901 | html5lib/namedEntities/0494 html5lib-tests |
&LeftTee
|
8 B | |
| 000902 | html5lib/namedEntities/0495 html5lib-tests |
⊣
|
9 B | |
| 000903 | html5lib/namedEntities/0496 html5lib-tests |
&LeftTeeArrow
|
13 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