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