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 |
|---|---|---|---|---|
| 004304 | html5lib/namedEntities/3897 html5lib-tests |
⨻
|
9 B | |
| 004305 | html5lib/namedEntities/3898 html5lib-tests |
&trpezium
|
9 B | |
| 004306 | html5lib/namedEntities/3899 html5lib-tests |
⏢
|
10 B | |
| 004307 | html5lib/namedEntities/3900 html5lib-tests |
&tscr
|
5 B | |
| 004308 | html5lib/namedEntities/3901 html5lib-tests |
𝓉
|
6 B | |
| 004309 | html5lib/namedEntities/3902 html5lib-tests |
&tscy
|
5 B | |
| 004310 | html5lib/namedEntities/3903 html5lib-tests |
ц
|
6 B | |
| 004311 | html5lib/namedEntities/3904 html5lib-tests |
&tshcy
|
6 B | |
| 004312 | html5lib/namedEntities/3905 html5lib-tests |
ћ
|
7 B | |
| 004313 | html5lib/namedEntities/3906 html5lib-tests |
&tstrok
|
7 B | |
| 004314 | html5lib/namedEntities/3907 html5lib-tests |
ŧ
|
8 B | |
| 004315 | html5lib/namedEntities/3908 html5lib-tests |
&twixt
|
6 B | |
| 004316 | html5lib/namedEntities/3909 html5lib-tests |
≬
|
7 B | |
| 004317 | html5lib/namedEntities/3910 html5lib-tests |
&twoheadleftarrow
|
17 B | |
| 004318 | html5lib/namedEntities/3911 html5lib-tests |
↞
|
18 B | |
| 004319 | html5lib/namedEntities/3912 html5lib-tests |
&twoheadrightarrow
|
18 B | |
| 004320 | html5lib/namedEntities/3913 html5lib-tests |
↠
|
19 B | |
| 004321 | html5lib/namedEntities/3914 html5lib-tests |
&uArr
|
5 B | |
| 004322 | html5lib/namedEntities/3915 html5lib-tests |
⇑
|
6 B | |
| 004323 | html5lib/namedEntities/3916 html5lib-tests |
&uHar
|
5 B | |
| 004324 | html5lib/namedEntities/3917 html5lib-tests |
⥣
|
6 B | |
| 004325 | html5lib/namedEntities/3918 html5lib-tests |
ú
|
7 B | |
| 004326 | html5lib/namedEntities/3919 html5lib-tests |
ú
|
8 B | |
| 004327 | html5lib/namedEntities/3920 html5lib-tests |
&uarr
|
5 B | |
| 004328 | html5lib/namedEntities/3921 html5lib-tests |
↑
|
6 B | |
| 004329 | html5lib/namedEntities/3922 html5lib-tests |
&ubrcy
|
6 B | |
| 004330 | html5lib/namedEntities/3923 html5lib-tests |
ў
|
7 B | |
| 004331 | html5lib/namedEntities/3924 html5lib-tests |
&ubreve
|
7 B | |
| 004332 | html5lib/namedEntities/3925 html5lib-tests |
ŭ
|
8 B | |
| 004333 | html5lib/namedEntities/3926 html5lib-tests |
û
|
6 B | |
| 004334 | html5lib/namedEntities/3927 html5lib-tests |
û
|
7 B | |
| 004335 | html5lib/namedEntities/3928 html5lib-tests |
&ucy
|
4 B | |
| 004336 | html5lib/namedEntities/3929 html5lib-tests |
у
|
5 B | |
| 004337 | html5lib/namedEntities/3930 html5lib-tests |
&udarr
|
6 B | |
| 004338 | html5lib/namedEntities/3931 html5lib-tests |
⇅
|
7 B | |
| 004339 | html5lib/namedEntities/3932 html5lib-tests |
&udblac
|
7 B | |
| 004340 | html5lib/namedEntities/3933 html5lib-tests |
ű
|
8 B | |
| 004341 | html5lib/namedEntities/3934 html5lib-tests |
&udhar
|
6 B | |
| 004342 | html5lib/namedEntities/3935 html5lib-tests |
⥮
|
7 B | |
| 004343 | html5lib/namedEntities/3936 html5lib-tests |
&ufisht
|
7 B | |
| 004344 | html5lib/namedEntities/3937 html5lib-tests |
⥾
|
8 B | |
| 004345 | html5lib/namedEntities/3938 html5lib-tests |
&ufr
|
4 B | |
| 004346 | html5lib/namedEntities/3939 html5lib-tests |
𝔲
|
5 B | |
| 004347 | html5lib/namedEntities/3940 html5lib-tests |
ù
|
7 B | |
| 004348 | html5lib/namedEntities/3941 html5lib-tests |
ù
|
8 B | |
| 004349 | html5lib/namedEntities/3942 html5lib-tests |
&uharl
|
6 B | |
| 004350 | html5lib/namedEntities/3943 html5lib-tests |
↿
|
7 B | |
| 004351 | html5lib/namedEntities/3944 html5lib-tests |
&uharr
|
6 B | |
| 004352 | html5lib/namedEntities/3945 html5lib-tests |
↾
|
7 B | |
| 004353 | html5lib/namedEntities/3946 html5lib-tests |
&uhblk
|
6 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