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 |
|---|---|---|---|---|
| 001304 | html5lib/namedEntities/0897 html5lib-tests |
ℝ
|
6 B | |
| 001305 | html5lib/namedEntities/0898 html5lib-tests |
&RoundImplies
|
13 B | |
| 001306 | html5lib/namedEntities/0899 html5lib-tests |
⥰
|
14 B | |
| 001307 | html5lib/namedEntities/0900 html5lib-tests |
&Rrightarrow
|
12 B | |
| 001308 | html5lib/namedEntities/0901 html5lib-tests |
⇛
|
13 B | |
| 001309 | html5lib/namedEntities/0902 html5lib-tests |
&Rscr
|
5 B | |
| 001310 | html5lib/namedEntities/0903 html5lib-tests |
ℛ
|
6 B | |
| 001311 | html5lib/namedEntities/0904 html5lib-tests |
&Rsh
|
4 B | |
| 001312 | html5lib/namedEntities/0905 html5lib-tests |
↱
|
5 B | |
| 001313 | html5lib/namedEntities/0906 html5lib-tests |
&RuleDelayed
|
12 B | |
| 001314 | html5lib/namedEntities/0907 html5lib-tests |
⧴
|
13 B | |
| 001315 | html5lib/namedEntities/0908 html5lib-tests |
&SHCHcy
|
7 B | |
| 001316 | html5lib/namedEntities/0909 html5lib-tests |
Щ
|
8 B | |
| 001317 | html5lib/namedEntities/0910 html5lib-tests |
&SHcy
|
5 B | |
| 001318 | html5lib/namedEntities/0911 html5lib-tests |
Ш
|
6 B | |
| 001319 | html5lib/namedEntities/0912 html5lib-tests |
&SOFTcy
|
7 B | |
| 001320 | html5lib/namedEntities/0913 html5lib-tests |
Ь
|
8 B | |
| 001321 | html5lib/namedEntities/0914 html5lib-tests |
&Sacute
|
7 B | |
| 001322 | html5lib/namedEntities/0915 html5lib-tests |
Ś
|
8 B | |
| 001323 | html5lib/namedEntities/0916 html5lib-tests |
&Sc
|
3 B | |
| 001324 | html5lib/namedEntities/0917 html5lib-tests |
⪼
|
4 B | |
| 001325 | html5lib/namedEntities/0918 html5lib-tests |
&Scaron
|
7 B | |
| 001326 | html5lib/namedEntities/0919 html5lib-tests |
Š
|
8 B | |
| 001327 | html5lib/namedEntities/0920 html5lib-tests |
&Scedil
|
7 B | |
| 001328 | html5lib/namedEntities/0921 html5lib-tests |
Ş
|
8 B | |
| 001329 | html5lib/namedEntities/0922 html5lib-tests |
&Scirc
|
6 B | |
| 001330 | html5lib/namedEntities/0923 html5lib-tests |
Ŝ
|
7 B | |
| 001331 | html5lib/namedEntities/0924 html5lib-tests |
&Scy
|
4 B | |
| 001332 | html5lib/namedEntities/0925 html5lib-tests |
С
|
5 B | |
| 001333 | html5lib/namedEntities/0926 html5lib-tests |
&Sfr
|
4 B | |
| 001334 | html5lib/namedEntities/0927 html5lib-tests |
𝔖
|
5 B | |
| 001335 | html5lib/namedEntities/0928 html5lib-tests |
&ShortDownArrow
|
15 B | |
| 001336 | html5lib/namedEntities/0929 html5lib-tests |
↓
|
16 B | |
| 001337 | html5lib/namedEntities/0930 html5lib-tests |
&ShortLeftArrow
|
15 B | |
| 001338 | html5lib/namedEntities/0931 html5lib-tests |
←
|
16 B | |
| 001339 | html5lib/namedEntities/0932 html5lib-tests |
&ShortRightArrow
|
16 B | |
| 001340 | html5lib/namedEntities/0933 html5lib-tests |
→
|
17 B | |
| 001341 | html5lib/namedEntities/0934 html5lib-tests |
&ShortUpArrow
|
13 B | |
| 001342 | html5lib/namedEntities/0935 html5lib-tests |
↑
|
14 B | |
| 001343 | html5lib/namedEntities/0936 html5lib-tests |
&Sigma
|
6 B | |
| 001344 | html5lib/namedEntities/0937 html5lib-tests |
Σ
|
7 B | |
| 001345 | html5lib/namedEntities/0938 html5lib-tests |
&SmallCircle
|
12 B | |
| 001346 | html5lib/namedEntities/0939 html5lib-tests |
∘
|
13 B | |
| 001347 | html5lib/namedEntities/0940 html5lib-tests |
&Sopf
|
5 B | |
| 001348 | html5lib/namedEntities/0941 html5lib-tests |
𝕊
|
6 B | |
| 001349 | html5lib/namedEntities/0942 html5lib-tests |
&Sqrt
|
5 B | |
| 001350 | html5lib/namedEntities/0943 html5lib-tests |
√
|
6 B | |
| 001351 | html5lib/namedEntities/0944 html5lib-tests |
&Square
|
7 B | |
| 001352 | html5lib/namedEntities/0945 html5lib-tests |
□
|
8 B | |
| 001353 | html5lib/namedEntities/0946 html5lib-tests |
&SquareIntersection
|
19 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