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 |
|---|---|---|---|---|
| 001404 | html5lib/namedEntities/0997 html5lib-tests |
␉
|
5 B | |
| 001405 | html5lib/namedEntities/0998 html5lib-tests |
&Tau
|
4 B | |
| 001406 | html5lib/namedEntities/0999 html5lib-tests |
Τ
|
5 B | |
| 001407 | html5lib/namedEntities/1000 html5lib-tests |
&Tcaron
|
7 B | |
| 001408 | html5lib/namedEntities/1001 html5lib-tests |
Ť
|
8 B | |
| 001409 | html5lib/namedEntities/1002 html5lib-tests |
&Tcedil
|
7 B | |
| 001410 | html5lib/namedEntities/1003 html5lib-tests |
Ţ
|
8 B | |
| 001411 | html5lib/namedEntities/1004 html5lib-tests |
&Tcy
|
4 B | |
| 001412 | html5lib/namedEntities/1005 html5lib-tests |
Т
|
5 B | |
| 001413 | html5lib/namedEntities/1006 html5lib-tests |
&Tfr
|
4 B | |
| 001414 | html5lib/namedEntities/1007 html5lib-tests |
𝔗
|
5 B | |
| 001415 | html5lib/namedEntities/1008 html5lib-tests |
&Therefore
|
10 B | |
| 001416 | html5lib/namedEntities/1009 html5lib-tests |
∴
|
11 B | |
| 001417 | html5lib/namedEntities/1010 html5lib-tests |
&Theta
|
6 B | |
| 001418 | html5lib/namedEntities/1011 html5lib-tests |
Θ
|
7 B | |
| 001419 | html5lib/namedEntities/1012 html5lib-tests |
&ThickSpace
|
11 B | |
| 001420 | html5lib/namedEntities/1013 html5lib-tests |
|
12 B | |
| 001421 | html5lib/namedEntities/1014 html5lib-tests |
&ThinSpace
|
10 B | |
| 001422 | html5lib/namedEntities/1015 html5lib-tests |
|
11 B | |
| 001423 | html5lib/namedEntities/1016 html5lib-tests |
&Tilde
|
6 B | |
| 001424 | html5lib/namedEntities/1017 html5lib-tests |
∼
|
7 B | |
| 001425 | html5lib/namedEntities/1018 html5lib-tests |
&TildeEqual
|
11 B | |
| 001426 | html5lib/namedEntities/1019 html5lib-tests |
≃
|
12 B | |
| 001427 | html5lib/namedEntities/1020 html5lib-tests |
&TildeFullEqual
|
15 B | |
| 001428 | html5lib/namedEntities/1021 html5lib-tests |
≅
|
16 B | |
| 001429 | html5lib/namedEntities/1022 html5lib-tests |
&TildeTilde
|
11 B | |
| 001430 | html5lib/namedEntities/1023 html5lib-tests |
≈
|
12 B | |
| 001431 | html5lib/namedEntities/1024 html5lib-tests |
&Topf
|
5 B | |
| 001432 | html5lib/namedEntities/1025 html5lib-tests |
𝕋
|
6 B | |
| 001433 | html5lib/namedEntities/1026 html5lib-tests |
&TripleDot
|
10 B | |
| 001434 | html5lib/namedEntities/1027 html5lib-tests |
⃛
|
11 B | |
| 001435 | html5lib/namedEntities/1028 html5lib-tests |
&Tscr
|
5 B | |
| 001436 | html5lib/namedEntities/1029 html5lib-tests |
𝒯
|
6 B | |
| 001437 | html5lib/namedEntities/1030 html5lib-tests |
&Tstrok
|
7 B | |
| 001438 | html5lib/namedEntities/1031 html5lib-tests |
Ŧ
|
8 B | |
| 001439 | html5lib/namedEntities/1032 html5lib-tests |
Ú
|
7 B | |
| 001440 | html5lib/namedEntities/1033 html5lib-tests |
Ú
|
8 B | |
| 001441 | html5lib/namedEntities/1034 html5lib-tests |
&Uarr
|
5 B | |
| 001442 | html5lib/namedEntities/1035 html5lib-tests |
↟
|
6 B | |
| 001443 | html5lib/namedEntities/1036 html5lib-tests |
&Uarrocir
|
9 B | |
| 001444 | html5lib/namedEntities/1037 html5lib-tests |
⥉
|
10 B | |
| 001445 | html5lib/namedEntities/1038 html5lib-tests |
&Ubrcy
|
6 B | |
| 001446 | html5lib/namedEntities/1039 html5lib-tests |
Ў
|
7 B | |
| 001447 | html5lib/namedEntities/1040 html5lib-tests |
&Ubreve
|
7 B | |
| 001448 | html5lib/namedEntities/1041 html5lib-tests |
Ŭ
|
8 B | |
| 001449 | html5lib/namedEntities/1042 html5lib-tests |
Û
|
6 B | |
| 001450 | html5lib/namedEntities/1043 html5lib-tests |
Û
|
7 B | |
| 001451 | html5lib/namedEntities/1044 html5lib-tests |
&Ucy
|
4 B | |
| 001452 | html5lib/namedEntities/1045 html5lib-tests |
У
|
5 B | |
| 001453 | html5lib/namedEntities/1046 html5lib-tests |
&Udblac
|
7 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