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 |
|---|---|---|---|---|
| 004250 | html5lib/namedEntities/3843 html5lib-tests |
þ
|
6 B | |
| 004251 | html5lib/namedEntities/3844 html5lib-tests |
þ
|
7 B | |
| 004252 | html5lib/namedEntities/3845 html5lib-tests |
&tilde
|
6 B | |
| 004253 | html5lib/namedEntities/3846 html5lib-tests |
˜
|
7 B | |
| 004254 | html5lib/namedEntities/3847 html5lib-tests |
×
|
6 B | |
| 004255 | html5lib/namedEntities/3848 html5lib-tests |
×
|
7 B | |
| 004256 | html5lib/namedEntities/3849 html5lib-tests |
⊠
|
8 B | |
| 004257 | html5lib/namedEntities/3850 html5lib-tests |
⨱
|
10 B | |
| 004258 | html5lib/namedEntities/3851 html5lib-tests |
⨰
|
8 B | |
| 004259 | html5lib/namedEntities/3852 html5lib-tests |
&tint
|
5 B | |
| 004260 | html5lib/namedEntities/3853 html5lib-tests |
∭
|
6 B | |
| 004261 | html5lib/namedEntities/3854 html5lib-tests |
&toea
|
5 B | |
| 004262 | html5lib/namedEntities/3855 html5lib-tests |
⤨
|
6 B | |
| 004263 | html5lib/namedEntities/3856 html5lib-tests |
&top
|
4 B | |
| 004264 | html5lib/namedEntities/3857 html5lib-tests |
⊤
|
5 B | |
| 004265 | html5lib/namedEntities/3858 html5lib-tests |
&topbot
|
7 B | |
| 004266 | html5lib/namedEntities/3859 html5lib-tests |
⌶
|
8 B | |
| 004267 | html5lib/namedEntities/3860 html5lib-tests |
&topcir
|
7 B | |
| 004268 | html5lib/namedEntities/3861 html5lib-tests |
⫱
|
8 B | |
| 004269 | html5lib/namedEntities/3862 html5lib-tests |
&topf
|
5 B | |
| 004270 | html5lib/namedEntities/3863 html5lib-tests |
𝕥
|
6 B | |
| 004271 | html5lib/namedEntities/3864 html5lib-tests |
&topfork
|
8 B | |
| 004272 | html5lib/namedEntities/3865 html5lib-tests |
⫚
|
9 B | |
| 004273 | html5lib/namedEntities/3866 html5lib-tests |
&tosa
|
5 B | |
| 004274 | html5lib/namedEntities/3867 html5lib-tests |
⤩
|
6 B | |
| 004275 | html5lib/namedEntities/3868 html5lib-tests |
&tprime
|
7 B | |
| 004276 | html5lib/namedEntities/3869 html5lib-tests |
‴
|
8 B | |
| 004277 | html5lib/namedEntities/3870 html5lib-tests |
&trade
|
6 B | |
| 004278 | html5lib/namedEntities/3871 html5lib-tests |
™
|
7 B | |
| 004279 | html5lib/namedEntities/3872 html5lib-tests |
&triangle
|
9 B | |
| 004280 | html5lib/namedEntities/3873 html5lib-tests |
▵
|
10 B | |
| 004281 | html5lib/namedEntities/3874 html5lib-tests |
&triangledown
|
13 B | |
| 004282 | html5lib/namedEntities/3875 html5lib-tests |
▿
|
14 B | |
| 004283 | html5lib/namedEntities/3876 html5lib-tests |
&triangleleft
|
13 B | |
| 004284 | html5lib/namedEntities/3877 html5lib-tests |
◃
|
14 B | |
| 004285 | html5lib/namedEntities/3878 html5lib-tests |
&trianglelefteq
|
15 B | |
| 004286 | html5lib/namedEntities/3879 html5lib-tests |
⊴
|
16 B | |
| 004287 | html5lib/namedEntities/3880 html5lib-tests |
&triangleq
|
10 B | |
| 004288 | html5lib/namedEntities/3881 html5lib-tests |
≜
|
11 B | |
| 004289 | html5lib/namedEntities/3882 html5lib-tests |
&triangleright
|
14 B | |
| 004290 | html5lib/namedEntities/3883 html5lib-tests |
▹
|
15 B | |
| 004291 | html5lib/namedEntities/3884 html5lib-tests |
&trianglerighteq
|
16 B | |
| 004292 | html5lib/namedEntities/3885 html5lib-tests |
⊵
|
17 B | |
| 004293 | html5lib/namedEntities/3886 html5lib-tests |
&tridot
|
7 B | |
| 004294 | html5lib/namedEntities/3887 html5lib-tests |
◬
|
8 B | |
| 004295 | html5lib/namedEntities/3888 html5lib-tests |
&trie
|
5 B | |
| 004296 | html5lib/namedEntities/3889 html5lib-tests |
≜
|
6 B | |
| 004297 | html5lib/namedEntities/3890 html5lib-tests |
&triminus
|
9 B | |
| 004298 | html5lib/namedEntities/3891 html5lib-tests |
⨺
|
10 B | |
| 004299 | html5lib/namedEntities/3892 html5lib-tests |
&triplus
|
8 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