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 |
|---|---|---|---|---|
| 002150 | html5lib/namedEntities/1743 html5lib-tests |
‐
|
6 B | |
| 002151 | html5lib/namedEntities/1744 html5lib-tests |
&dashv
|
6 B | |
| 002152 | html5lib/namedEntities/1745 html5lib-tests |
⊣
|
7 B | |
| 002153 | html5lib/namedEntities/1746 html5lib-tests |
&dbkarow
|
8 B | |
| 002154 | html5lib/namedEntities/1747 html5lib-tests |
⤏
|
9 B | |
| 002155 | html5lib/namedEntities/1748 html5lib-tests |
&dblac
|
6 B | |
| 002156 | html5lib/namedEntities/1749 html5lib-tests |
˝
|
7 B | |
| 002157 | html5lib/namedEntities/1750 html5lib-tests |
&dcaron
|
7 B | |
| 002158 | html5lib/namedEntities/1751 html5lib-tests |
ď
|
8 B | |
| 002159 | html5lib/namedEntities/1752 html5lib-tests |
&dcy
|
4 B | |
| 002160 | html5lib/namedEntities/1753 html5lib-tests |
д
|
5 B | |
| 002161 | html5lib/namedEntities/1754 html5lib-tests |
&dd
|
3 B | |
| 002162 | html5lib/namedEntities/1755 html5lib-tests |
ⅆ
|
4 B | |
| 002163 | html5lib/namedEntities/1756 html5lib-tests |
&ddagger
|
8 B | |
| 002164 | html5lib/namedEntities/1757 html5lib-tests |
‡
|
9 B | |
| 002165 | html5lib/namedEntities/1758 html5lib-tests |
&ddarr
|
6 B | |
| 002166 | html5lib/namedEntities/1759 html5lib-tests |
⇊
|
7 B | |
| 002167 | html5lib/namedEntities/1760 html5lib-tests |
&ddotseq
|
8 B | |
| 002168 | html5lib/namedEntities/1761 html5lib-tests |
⩷
|
9 B | |
| 002169 | html5lib/namedEntities/1762 html5lib-tests |
°
|
4 B | |
| 002170 | html5lib/namedEntities/1763 html5lib-tests |
°
|
5 B | |
| 002171 | html5lib/namedEntities/1764 html5lib-tests |
&delta
|
6 B | |
| 002172 | html5lib/namedEntities/1765 html5lib-tests |
δ
|
7 B | |
| 002173 | html5lib/namedEntities/1766 html5lib-tests |
&demptyv
|
8 B | |
| 002174 | html5lib/namedEntities/1767 html5lib-tests |
⦱
|
9 B | |
| 002175 | html5lib/namedEntities/1768 html5lib-tests |
&dfisht
|
7 B | |
| 002176 | html5lib/namedEntities/1769 html5lib-tests |
⥿
|
8 B | |
| 002177 | html5lib/namedEntities/1770 html5lib-tests |
&dfr
|
4 B | |
| 002178 | html5lib/namedEntities/1771 html5lib-tests |
𝔡
|
5 B | |
| 002179 | html5lib/namedEntities/1772 html5lib-tests |
&dharl
|
6 B | |
| 002180 | html5lib/namedEntities/1773 html5lib-tests |
⇃
|
7 B | |
| 002181 | html5lib/namedEntities/1774 html5lib-tests |
&dharr
|
6 B | |
| 002182 | html5lib/namedEntities/1775 html5lib-tests |
⇂
|
7 B | |
| 002183 | html5lib/namedEntities/1776 html5lib-tests |
&diam
|
5 B | |
| 002184 | html5lib/namedEntities/1777 html5lib-tests |
⋄
|
6 B | |
| 002185 | html5lib/namedEntities/1778 html5lib-tests |
&diamond
|
8 B | |
| 002186 | html5lib/namedEntities/1779 html5lib-tests |
⋄
|
9 B | |
| 002187 | html5lib/namedEntities/1780 html5lib-tests |
&diamondsuit
|
12 B | |
| 002188 | html5lib/namedEntities/1781 html5lib-tests |
♦
|
13 B | |
| 002189 | html5lib/namedEntities/1782 html5lib-tests |
&diams
|
6 B | |
| 002190 | html5lib/namedEntities/1783 html5lib-tests |
♦
|
7 B | |
| 002191 | html5lib/namedEntities/1784 html5lib-tests |
&die
|
4 B | |
| 002192 | html5lib/namedEntities/1785 html5lib-tests |
¨
|
5 B | |
| 002193 | html5lib/namedEntities/1786 html5lib-tests |
&digamma
|
8 B | |
| 002194 | html5lib/namedEntities/1787 html5lib-tests |
ϝ
|
9 B | |
| 002195 | html5lib/namedEntities/1788 html5lib-tests |
&disin
|
6 B | |
| 002196 | html5lib/namedEntities/1789 html5lib-tests |
⋲
|
7 B | |
| 002197 | html5lib/namedEntities/1790 html5lib-tests |
&div
|
4 B | |
| 002198 | html5lib/namedEntities/1791 html5lib-tests |
÷
|
5 B | |
| 002199 | html5lib/namedEntities/1792 html5lib-tests |
÷
|
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