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
All 6,835 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 004500 | html5lib/namedEntities/4093 html5lib-tests |
ŵ
|
7 B | |
| 004501 | html5lib/namedEntities/4094 html5lib-tests |
&wedbar
|
7 B | |
| 004502 | html5lib/namedEntities/4095 html5lib-tests |
⩟
|
8 B | |
| 004503 | html5lib/namedEntities/4096 html5lib-tests |
&wedge
|
6 B | |
| 004504 | html5lib/namedEntities/4097 html5lib-tests |
∧
|
7 B | |
| 004505 | html5lib/namedEntities/4098 html5lib-tests |
&wedgeq
|
7 B | |
| 004506 | html5lib/namedEntities/4099 html5lib-tests |
≙
|
8 B | |
| 004507 | html5lib/namedEntities/4100 html5lib-tests |
&weierp
|
7 B | |
| 004508 | html5lib/namedEntities/4101 html5lib-tests |
℘
|
8 B | |
| 004509 | html5lib/namedEntities/4102 html5lib-tests |
&wfr
|
4 B | |
| 004510 | html5lib/namedEntities/4103 html5lib-tests |
𝔴
|
5 B | |
| 004511 | html5lib/namedEntities/4104 html5lib-tests |
&wopf
|
5 B | |
| 004512 | html5lib/namedEntities/4105 html5lib-tests |
𝕨
|
6 B | |
| 004513 | html5lib/namedEntities/4106 html5lib-tests |
&wp
|
3 B | |
| 004514 | html5lib/namedEntities/4107 html5lib-tests |
℘
|
4 B | |
| 004515 | html5lib/namedEntities/4108 html5lib-tests |
&wr
|
3 B | |
| 004516 | html5lib/namedEntities/4109 html5lib-tests |
≀
|
4 B | |
| 004517 | html5lib/namedEntities/4110 html5lib-tests |
&wreath
|
7 B | |
| 004518 | html5lib/namedEntities/4111 html5lib-tests |
≀
|
8 B | |
| 004519 | html5lib/namedEntities/4112 html5lib-tests |
&wscr
|
5 B | |
| 004520 | html5lib/namedEntities/4113 html5lib-tests |
𝓌
|
6 B | |
| 004521 | html5lib/namedEntities/4114 html5lib-tests |
&xcap
|
5 B | |
| 004522 | html5lib/namedEntities/4115 html5lib-tests |
⋂
|
6 B | |
| 004523 | html5lib/namedEntities/4116 html5lib-tests |
&xcirc
|
6 B | |
| 004524 | html5lib/namedEntities/4117 html5lib-tests |
◯
|
7 B | |
| 004525 | html5lib/namedEntities/4118 html5lib-tests |
&xcup
|
5 B | |
| 004526 | html5lib/namedEntities/4119 html5lib-tests |
⋃
|
6 B | |
| 004527 | html5lib/namedEntities/4120 html5lib-tests |
&xdtri
|
6 B | |
| 004528 | html5lib/namedEntities/4121 html5lib-tests |
▽
|
7 B | |
| 004529 | html5lib/namedEntities/4122 html5lib-tests |
&xfr
|
4 B | |
| 004530 | html5lib/namedEntities/4123 html5lib-tests |
𝔵
|
5 B | |
| 004531 | html5lib/namedEntities/4124 html5lib-tests |
&xhArr
|
6 B | |
| 004532 | html5lib/namedEntities/4125 html5lib-tests |
⟺
|
7 B | |
| 004533 | html5lib/namedEntities/4126 html5lib-tests |
&xharr
|
6 B | |
| 004534 | html5lib/namedEntities/4127 html5lib-tests |
⟷
|
7 B | |
| 004535 | html5lib/namedEntities/4128 html5lib-tests |
&xi
|
3 B | |
| 004536 | html5lib/namedEntities/4129 html5lib-tests |
ξ
|
4 B | |
| 004537 | html5lib/namedEntities/4130 html5lib-tests |
&xlArr
|
6 B | |
| 004538 | html5lib/namedEntities/4131 html5lib-tests |
⟸
|
7 B | |
| 004539 | html5lib/namedEntities/4132 html5lib-tests |
&xlarr
|
6 B | |
| 004540 | html5lib/namedEntities/4133 html5lib-tests |
⟵
|
7 B | |
| 004541 | html5lib/namedEntities/4134 html5lib-tests |
&xmap
|
5 B | |
| 004542 | html5lib/namedEntities/4135 html5lib-tests |
⟼
|
6 B | |
| 004543 | html5lib/namedEntities/4136 html5lib-tests |
&xnis
|
5 B | |
| 004544 | html5lib/namedEntities/4137 html5lib-tests |
⋻
|
6 B | |
| 004545 | html5lib/namedEntities/4138 html5lib-tests |
&xodot
|
6 B | |
| 004546 | html5lib/namedEntities/4139 html5lib-tests |
⨀
|
7 B | |
| 004547 | html5lib/namedEntities/4140 html5lib-tests |
&xopf
|
5 B | |
| 004548 | html5lib/namedEntities/4141 html5lib-tests |
𝕩
|
6 B | |
| 004549 | html5lib/namedEntities/4142 html5lib-tests |
&xoplus
|
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