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
002750 html5lib/namedEntities/2343 html5lib-tests &kgreen Bad named entity: kgreen without a semi-colon 7 B
002751 html5lib/namedEntities/2344 html5lib-tests ĸ Named entity: kgreen; with a semi-colon 8 B
002752 html5lib/namedEntities/2345 html5lib-tests &khcy Bad named entity: khcy without a semi-colon 5 B
002753 html5lib/namedEntities/2346 html5lib-tests х Named entity: khcy; with a semi-colon 6 B
002754 html5lib/namedEntities/2347 html5lib-tests &kjcy Bad named entity: kjcy without a semi-colon 5 B
002755 html5lib/namedEntities/2348 html5lib-tests ќ Named entity: kjcy; with a semi-colon 6 B
002756 html5lib/namedEntities/2349 html5lib-tests &kopf Bad named entity: kopf without a semi-colon 5 B
002757 html5lib/namedEntities/2350 html5lib-tests 𝕜 Named entity: kopf; with a semi-colon 6 B
002758 html5lib/namedEntities/2351 html5lib-tests &kscr Bad named entity: kscr without a semi-colon 5 B
002759 html5lib/namedEntities/2352 html5lib-tests 𝓀 Named entity: kscr; with a semi-colon 6 B
002760 html5lib/namedEntities/2353 html5lib-tests &lAarr Bad named entity: lAarr without a semi-colon 6 B
002761 html5lib/namedEntities/2354 html5lib-tests ⇚ Named entity: lAarr; with a semi-colon 7 B
002762 html5lib/namedEntities/2355 html5lib-tests &lArr Bad named entity: lArr without a semi-colon 5 B
002763 html5lib/namedEntities/2356 html5lib-tests ⇐ Named entity: lArr; with a semi-colon 6 B
002764 html5lib/namedEntities/2357 html5lib-tests &lAtail Bad named entity: lAtail without a semi-colon 7 B
002765 html5lib/namedEntities/2358 html5lib-tests ⤛ Named entity: lAtail; with a semi-colon 8 B
002766 html5lib/namedEntities/2359 html5lib-tests &lBarr Bad named entity: lBarr without a semi-colon 6 B
002767 html5lib/namedEntities/2360 html5lib-tests ⤎ Named entity: lBarr; with a semi-colon 7 B
002768 html5lib/namedEntities/2361 html5lib-tests &lE Bad named entity: lE without a semi-colon 3 B
002769 html5lib/namedEntities/2362 html5lib-tests ≦ Named entity: lE; with a semi-colon 4 B
002770 html5lib/namedEntities/2363 html5lib-tests &lEg Bad named entity: lEg without a semi-colon 4 B
002771 html5lib/namedEntities/2364 html5lib-tests ⪋ Named entity: lEg; with a semi-colon 5 B
002772 html5lib/namedEntities/2365 html5lib-tests &lHar Bad named entity: lHar without a semi-colon 5 B
002773 html5lib/namedEntities/2366 html5lib-tests ⥢ Named entity: lHar; with a semi-colon 6 B
002774 html5lib/namedEntities/2367 html5lib-tests &lacute Bad named entity: lacute without a semi-colon 7 B
002775 html5lib/namedEntities/2368 html5lib-tests ĺ Named entity: lacute; with a semi-colon 8 B
002776 html5lib/namedEntities/2369 html5lib-tests &laemptyv Bad named entity: laemptyv without a semi-colon 9 B
002777 html5lib/namedEntities/2370 html5lib-tests ⦴ Named entity: laemptyv; with a semi-colon 10 B
002778 html5lib/namedEntities/2371 html5lib-tests &lagran Bad named entity: lagran without a semi-colon 7 B
002779 html5lib/namedEntities/2372 html5lib-tests ℒ Named entity: lagran; with a semi-colon 8 B
002780 html5lib/namedEntities/2373 html5lib-tests &lambda Bad named entity: lambda without a semi-colon 7 B
002781 html5lib/namedEntities/2374 html5lib-tests λ Named entity: lambda; with a semi-colon 8 B
002782 html5lib/namedEntities/2375 html5lib-tests &lang Bad named entity: lang without a semi-colon 5 B
002783 html5lib/namedEntities/2376 html5lib-tests ⟨ Named entity: lang; with a semi-colon 6 B
002784 html5lib/namedEntities/2377 html5lib-tests &langd Bad named entity: langd without a semi-colon 6 B
002785 html5lib/namedEntities/2378 html5lib-tests ⦑ Named entity: langd; with a semi-colon 7 B
002786 html5lib/namedEntities/2379 html5lib-tests &langle Bad named entity: langle without a semi-colon 7 B
002787 html5lib/namedEntities/2380 html5lib-tests ⟨ Named entity: langle; with a semi-colon 8 B
002788 html5lib/namedEntities/2381 html5lib-tests &lap Bad named entity: lap without a semi-colon 4 B
002789 html5lib/namedEntities/2382 html5lib-tests ⪅ Named entity: lap; with a semi-colon 5 B
002790 html5lib/namedEntities/2383 html5lib-tests « Named entity: laquo without a semi-colon 6 B
002791 html5lib/namedEntities/2384 html5lib-tests « Named entity: laquo; with a semi-colon 7 B
002792 html5lib/namedEntities/2385 html5lib-tests &larr Bad named entity: larr without a semi-colon 5 B
002793 html5lib/namedEntities/2386 html5lib-tests ← Named entity: larr; with a semi-colon 6 B
002794 html5lib/namedEntities/2387 html5lib-tests &larrb Bad named entity: larrb without a semi-colon 6 B
002795 html5lib/namedEntities/2388 html5lib-tests ⇤ Named entity: larrb; with a semi-colon 7 B
002796 html5lib/namedEntities/2389 html5lib-tests &larrbfs Bad named entity: larrbfs without a semi-colon 8 B
002797 html5lib/namedEntities/2390 html5lib-tests ⤟ Named entity: larrbfs; with a semi-colon 9 B
002798 html5lib/namedEntities/2391 html5lib-tests &larrfs Bad named entity: larrfs without a semi-colon 7 B
002799 html5lib/namedEntities/2392 html5lib-tests ⤝ Named entity: larrfs; 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.