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
Clear

5,931 of 6,835 cases

Case Name Expected Note Size
002154 html5lib/namedEntities/1747 html5lib-tests ⤏ Named entity: dbkarow; with a semi-colon 9 B
002155 html5lib/namedEntities/1748 html5lib-tests &dblac Bad named entity: dblac without a semi-colon 6 B
002156 html5lib/namedEntities/1749 html5lib-tests ˝ Named entity: dblac; with a semi-colon 7 B
002157 html5lib/namedEntities/1750 html5lib-tests &dcaron Bad named entity: dcaron without a semi-colon 7 B
002158 html5lib/namedEntities/1751 html5lib-tests ď Named entity: dcaron; with a semi-colon 8 B
002159 html5lib/namedEntities/1752 html5lib-tests &dcy Bad named entity: dcy without a semi-colon 4 B
002160 html5lib/namedEntities/1753 html5lib-tests д Named entity: dcy; with a semi-colon 5 B
002161 html5lib/namedEntities/1754 html5lib-tests &dd Bad named entity: dd without a semi-colon 3 B
002162 html5lib/namedEntities/1755 html5lib-tests ⅆ Named entity: dd; with a semi-colon 4 B
002163 html5lib/namedEntities/1756 html5lib-tests &ddagger Bad named entity: ddagger without a semi-colon 8 B
002164 html5lib/namedEntities/1757 html5lib-tests ‡ Named entity: ddagger; with a semi-colon 9 B
002165 html5lib/namedEntities/1758 html5lib-tests &ddarr Bad named entity: ddarr without a semi-colon 6 B
002166 html5lib/namedEntities/1759 html5lib-tests ⇊ Named entity: ddarr; with a semi-colon 7 B
002167 html5lib/namedEntities/1760 html5lib-tests &ddotseq Bad named entity: ddotseq without a semi-colon 8 B
002168 html5lib/namedEntities/1761 html5lib-tests ⩷ Named entity: ddotseq; with a semi-colon 9 B
002169 html5lib/namedEntities/1762 html5lib-tests ° Named entity: deg without a semi-colon 4 B
002170 html5lib/namedEntities/1763 html5lib-tests ° Named entity: deg; with a semi-colon 5 B
002171 html5lib/namedEntities/1764 html5lib-tests &delta Bad named entity: delta without a semi-colon 6 B
002172 html5lib/namedEntities/1765 html5lib-tests δ Named entity: delta; with a semi-colon 7 B
002173 html5lib/namedEntities/1766 html5lib-tests &demptyv Bad named entity: demptyv without a semi-colon 8 B
002174 html5lib/namedEntities/1767 html5lib-tests ⦱ Named entity: demptyv; with a semi-colon 9 B
002175 html5lib/namedEntities/1768 html5lib-tests &dfisht Bad named entity: dfisht without a semi-colon 7 B
002176 html5lib/namedEntities/1769 html5lib-tests ⥿ Named entity: dfisht; with a semi-colon 8 B
002177 html5lib/namedEntities/1770 html5lib-tests &dfr Bad named entity: dfr without a semi-colon 4 B
002178 html5lib/namedEntities/1771 html5lib-tests 𝔡 Named entity: dfr; with a semi-colon 5 B
002179 html5lib/namedEntities/1772 html5lib-tests &dharl Bad named entity: dharl without a semi-colon 6 B
002180 html5lib/namedEntities/1773 html5lib-tests ⇃ Named entity: dharl; with a semi-colon 7 B
002181 html5lib/namedEntities/1774 html5lib-tests &dharr Bad named entity: dharr without a semi-colon 6 B
002182 html5lib/namedEntities/1775 html5lib-tests ⇂ Named entity: dharr; with a semi-colon 7 B
002183 html5lib/namedEntities/1776 html5lib-tests &diam Bad named entity: diam without a semi-colon 5 B
002184 html5lib/namedEntities/1777 html5lib-tests ⋄ Named entity: diam; with a semi-colon 6 B
002185 html5lib/namedEntities/1778 html5lib-tests &diamond Bad named entity: diamond without a semi-colon 8 B
002186 html5lib/namedEntities/1779 html5lib-tests ⋄ Named entity: diamond; with a semi-colon 9 B
002187 html5lib/namedEntities/1780 html5lib-tests &diamondsuit Bad named entity: diamondsuit without a semi-colon 12 B
002188 html5lib/namedEntities/1781 html5lib-tests ♦ Named entity: diamondsuit; with a semi-colon 13 B
002189 html5lib/namedEntities/1782 html5lib-tests &diams Bad named entity: diams without a semi-colon 6 B
002190 html5lib/namedEntities/1783 html5lib-tests ♦ Named entity: diams; with a semi-colon 7 B
002191 html5lib/namedEntities/1784 html5lib-tests &die Bad named entity: die without a semi-colon 4 B
002192 html5lib/namedEntities/1785 html5lib-tests ¨ Named entity: die; with a semi-colon 5 B
002193 html5lib/namedEntities/1786 html5lib-tests &digamma Bad named entity: digamma without a semi-colon 8 B
002194 html5lib/namedEntities/1787 html5lib-tests ϝ Named entity: digamma; with a semi-colon 9 B
002195 html5lib/namedEntities/1788 html5lib-tests &disin Bad named entity: disin without a semi-colon 6 B
002196 html5lib/namedEntities/1789 html5lib-tests ⋲ Named entity: disin; with a semi-colon 7 B
002197 html5lib/namedEntities/1790 html5lib-tests &div Bad named entity: div without a semi-colon 4 B
002198 html5lib/namedEntities/1791 html5lib-tests ÷ Named entity: div; with a semi-colon 5 B
002199 html5lib/namedEntities/1792 html5lib-tests ÷ Named entity: divide without a semi-colon 7 B
002200 html5lib/namedEntities/1793 html5lib-tests ÷ Named entity: divide; with a semi-colon 8 B
002201 html5lib/namedEntities/1794 html5lib-tests ⋇ Named entity: divideontimes; with a semi-colon 15 B
002202 html5lib/namedEntities/1795 html5lib-tests &divonx Bad named entity: divonx without a semi-colon 7 B
002203 html5lib/namedEntities/1796 html5lib-tests ⋇ Named entity: divonx; with a semi-colon 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.