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
002400 html5lib/namedEntities/1993 html5lib-tests &ffllig Bad named entity: ffllig without a semi-colon 7 B
002401 html5lib/namedEntities/1994 html5lib-tests ffl Named entity: ffllig; with a semi-colon 8 B
002402 html5lib/namedEntities/1995 html5lib-tests &ffr Bad named entity: ffr without a semi-colon 4 B
002403 html5lib/namedEntities/1996 html5lib-tests 𝔣 Named entity: ffr; with a semi-colon 5 B
002404 html5lib/namedEntities/1997 html5lib-tests &filig Bad named entity: filig without a semi-colon 6 B
002405 html5lib/namedEntities/1998 html5lib-tests fi Named entity: filig; with a semi-colon 7 B
002406 html5lib/namedEntities/1999 html5lib-tests &fjlig Bad named entity: fjlig without a semi-colon 6 B
002407 html5lib/namedEntities/2000 html5lib-tests fj Named entity: fjlig; with a semi-colon 7 B
002408 html5lib/namedEntities/2001 html5lib-tests &flat Bad named entity: flat without a semi-colon 5 B
002409 html5lib/namedEntities/2002 html5lib-tests ♭ Named entity: flat; with a semi-colon 6 B
002410 html5lib/namedEntities/2003 html5lib-tests &fllig Bad named entity: fllig without a semi-colon 6 B
002411 html5lib/namedEntities/2004 html5lib-tests fl Named entity: fllig; with a semi-colon 7 B
002412 html5lib/namedEntities/2005 html5lib-tests &fltns Bad named entity: fltns without a semi-colon 6 B
002413 html5lib/namedEntities/2006 html5lib-tests ▱ Named entity: fltns; with a semi-colon 7 B
002414 html5lib/namedEntities/2007 html5lib-tests &fnof Bad named entity: fnof without a semi-colon 5 B
002415 html5lib/namedEntities/2008 html5lib-tests ƒ Named entity: fnof; with a semi-colon 6 B
002416 html5lib/namedEntities/2009 html5lib-tests &fopf Bad named entity: fopf without a semi-colon 5 B
002417 html5lib/namedEntities/2010 html5lib-tests 𝕗 Named entity: fopf; with a semi-colon 6 B
002418 html5lib/namedEntities/2011 html5lib-tests &forall Bad named entity: forall without a semi-colon 7 B
002419 html5lib/namedEntities/2012 html5lib-tests ∀ Named entity: forall; with a semi-colon 8 B
002420 html5lib/namedEntities/2013 html5lib-tests &fork Bad named entity: fork without a semi-colon 5 B
002421 html5lib/namedEntities/2014 html5lib-tests ⋔ Named entity: fork; with a semi-colon 6 B
002422 html5lib/namedEntities/2015 html5lib-tests &forkv Bad named entity: forkv without a semi-colon 6 B
002423 html5lib/namedEntities/2016 html5lib-tests ⫙ Named entity: forkv; with a semi-colon 7 B
002424 html5lib/namedEntities/2017 html5lib-tests &fpartint Bad named entity: fpartint without a semi-colon 9 B
002425 html5lib/namedEntities/2018 html5lib-tests ⨍ Named entity: fpartint; with a semi-colon 10 B
002426 html5lib/namedEntities/2019 html5lib-tests ½ Named entity: frac12 without a semi-colon 7 B
002427 html5lib/namedEntities/2020 html5lib-tests ½ Named entity: frac12; with a semi-colon 8 B
002428 html5lib/namedEntities/2021 html5lib-tests &frac13 Bad named entity: frac13 without a semi-colon 7 B
002429 html5lib/namedEntities/2022 html5lib-tests ⅓ Named entity: frac13; with a semi-colon 8 B
002430 html5lib/namedEntities/2023 html5lib-tests ¼ Named entity: frac14 without a semi-colon 7 B
002431 html5lib/namedEntities/2024 html5lib-tests ¼ Named entity: frac14; with a semi-colon 8 B
002432 html5lib/namedEntities/2025 html5lib-tests &frac15 Bad named entity: frac15 without a semi-colon 7 B
002433 html5lib/namedEntities/2026 html5lib-tests ⅕ Named entity: frac15; with a semi-colon 8 B
002434 html5lib/namedEntities/2027 html5lib-tests &frac16 Bad named entity: frac16 without a semi-colon 7 B
002435 html5lib/namedEntities/2028 html5lib-tests ⅙ Named entity: frac16; with a semi-colon 8 B
002436 html5lib/namedEntities/2029 html5lib-tests &frac18 Bad named entity: frac18 without a semi-colon 7 B
002437 html5lib/namedEntities/2030 html5lib-tests ⅛ Named entity: frac18; with a semi-colon 8 B
002438 html5lib/namedEntities/2031 html5lib-tests &frac23 Bad named entity: frac23 without a semi-colon 7 B
002439 html5lib/namedEntities/2032 html5lib-tests ⅔ Named entity: frac23; with a semi-colon 8 B
002440 html5lib/namedEntities/2033 html5lib-tests &frac25 Bad named entity: frac25 without a semi-colon 7 B
002441 html5lib/namedEntities/2034 html5lib-tests ⅖ Named entity: frac25; with a semi-colon 8 B
002442 html5lib/namedEntities/2035 html5lib-tests ¾ Named entity: frac34 without a semi-colon 7 B
002443 html5lib/namedEntities/2036 html5lib-tests ¾ Named entity: frac34; with a semi-colon 8 B
002444 html5lib/namedEntities/2037 html5lib-tests &frac35 Bad named entity: frac35 without a semi-colon 7 B
002445 html5lib/namedEntities/2038 html5lib-tests ⅗ Named entity: frac35; with a semi-colon 8 B
002446 html5lib/namedEntities/2039 html5lib-tests &frac38 Bad named entity: frac38 without a semi-colon 7 B
002447 html5lib/namedEntities/2040 html5lib-tests ⅜ Named entity: frac38; with a semi-colon 8 B
002448 html5lib/namedEntities/2041 html5lib-tests &frac45 Bad named entity: frac45 without a semi-colon 7 B
002449 html5lib/namedEntities/2042 html5lib-tests ⅘ Named entity: frac45; 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.