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
002550 html5lib/namedEntities/2143 html5lib-tests > Named entity: gt without a semi-colon 3 B
002551 html5lib/namedEntities/2144 html5lib-tests > Named entity: gt; with a semi-colon 4 B
002552 html5lib/namedEntities/2145 html5lib-tests ⪧ Named entity: gtcc; with a semi-colon 6 B
002553 html5lib/namedEntities/2146 html5lib-tests ⩺ Named entity: gtcir; with a semi-colon 7 B
002554 html5lib/namedEntities/2147 html5lib-tests ⋗ Named entity: gtdot; with a semi-colon 7 B
002555 html5lib/namedEntities/2148 html5lib-tests ⦕ Named entity: gtlPar; with a semi-colon 8 B
002556 html5lib/namedEntities/2149 html5lib-tests ⩼ Named entity: gtquest; with a semi-colon 9 B
002557 html5lib/namedEntities/2150 html5lib-tests ⪆ Named entity: gtrapprox; with a semi-colon 11 B
002558 html5lib/namedEntities/2151 html5lib-tests ⥸ Named entity: gtrarr; with a semi-colon 8 B
002559 html5lib/namedEntities/2152 html5lib-tests ⋗ Named entity: gtrdot; with a semi-colon 8 B
002560 html5lib/namedEntities/2153 html5lib-tests ⋛ Named entity: gtreqless; with a semi-colon 11 B
002561 html5lib/namedEntities/2154 html5lib-tests ⪌ Named entity: gtreqqless; with a semi-colon 12 B
002562 html5lib/namedEntities/2155 html5lib-tests ≷ Named entity: gtrless; with a semi-colon 9 B
002563 html5lib/namedEntities/2156 html5lib-tests ≳ Named entity: gtrsim; with a semi-colon 8 B
002564 html5lib/namedEntities/2157 html5lib-tests &gvertneqq Bad named entity: gvertneqq without a semi-colon 10 B
002565 html5lib/namedEntities/2158 html5lib-tests ≩︀ Named entity: gvertneqq; with a semi-colon 11 B
002566 html5lib/namedEntities/2159 html5lib-tests &gvnE Bad named entity: gvnE without a semi-colon 5 B
002567 html5lib/namedEntities/2160 html5lib-tests ≩︀ Named entity: gvnE; with a semi-colon 6 B
002568 html5lib/namedEntities/2161 html5lib-tests &hArr Bad named entity: hArr without a semi-colon 5 B
002569 html5lib/namedEntities/2162 html5lib-tests ⇔ Named entity: hArr; with a semi-colon 6 B
002570 html5lib/namedEntities/2163 html5lib-tests &hairsp Bad named entity: hairsp without a semi-colon 7 B
002571 html5lib/namedEntities/2164 html5lib-tests   Named entity: hairsp; with a semi-colon 8 B
002572 html5lib/namedEntities/2165 html5lib-tests &half Bad named entity: half without a semi-colon 5 B
002573 html5lib/namedEntities/2166 html5lib-tests ½ Named entity: half; with a semi-colon 6 B
002574 html5lib/namedEntities/2167 html5lib-tests &hamilt Bad named entity: hamilt without a semi-colon 7 B
002575 html5lib/namedEntities/2168 html5lib-tests ℋ Named entity: hamilt; with a semi-colon 8 B
002576 html5lib/namedEntities/2169 html5lib-tests &hardcy Bad named entity: hardcy without a semi-colon 7 B
002577 html5lib/namedEntities/2170 html5lib-tests ъ Named entity: hardcy; with a semi-colon 8 B
002578 html5lib/namedEntities/2171 html5lib-tests &harr Bad named entity: harr without a semi-colon 5 B
002579 html5lib/namedEntities/2172 html5lib-tests ↔ Named entity: harr; with a semi-colon 6 B
002580 html5lib/namedEntities/2173 html5lib-tests &harrcir Bad named entity: harrcir without a semi-colon 8 B
002581 html5lib/namedEntities/2174 html5lib-tests ⥈ Named entity: harrcir; with a semi-colon 9 B
002582 html5lib/namedEntities/2175 html5lib-tests &harrw Bad named entity: harrw without a semi-colon 6 B
002583 html5lib/namedEntities/2176 html5lib-tests ↭ Named entity: harrw; with a semi-colon 7 B
002584 html5lib/namedEntities/2177 html5lib-tests &hbar Bad named entity: hbar without a semi-colon 5 B
002585 html5lib/namedEntities/2178 html5lib-tests ℏ Named entity: hbar; with a semi-colon 6 B
002586 html5lib/namedEntities/2179 html5lib-tests &hcirc Bad named entity: hcirc without a semi-colon 6 B
002587 html5lib/namedEntities/2180 html5lib-tests ĥ Named entity: hcirc; with a semi-colon 7 B
002588 html5lib/namedEntities/2181 html5lib-tests &hearts Bad named entity: hearts without a semi-colon 7 B
002589 html5lib/namedEntities/2182 html5lib-tests ♥ Named entity: hearts; with a semi-colon 8 B
002590 html5lib/namedEntities/2183 html5lib-tests &heartsuit Bad named entity: heartsuit without a semi-colon 10 B
002591 html5lib/namedEntities/2184 html5lib-tests ♥ Named entity: heartsuit; with a semi-colon 11 B
002592 html5lib/namedEntities/2185 html5lib-tests &hellip Bad named entity: hellip without a semi-colon 7 B
002593 html5lib/namedEntities/2186 html5lib-tests … Named entity: hellip; with a semi-colon 8 B
002594 html5lib/namedEntities/2187 html5lib-tests &hercon Bad named entity: hercon without a semi-colon 7 B
002595 html5lib/namedEntities/2188 html5lib-tests ⊹ Named entity: hercon; with a semi-colon 8 B
002596 html5lib/namedEntities/2189 html5lib-tests &hfr Bad named entity: hfr without a semi-colon 4 B
002597 html5lib/namedEntities/2190 html5lib-tests 𝔥 Named entity: hfr; with a semi-colon 5 B
002598 html5lib/namedEntities/2191 html5lib-tests &hksearow Bad named entity: hksearow without a semi-colon 9 B
002599 html5lib/namedEntities/2192 html5lib-tests ⤥ Named entity: hksearow; with a semi-colon 10 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.