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
001204 html5lib/namedEntities/0797 html5lib-tests ≼ Named entity: PrecedesSlantEqual; with a semi-colon 20 B
001205 html5lib/namedEntities/0798 html5lib-tests &PrecedesTilde Bad named entity: PrecedesTilde without a semi-colon 14 B
001206 html5lib/namedEntities/0799 html5lib-tests ≾ Named entity: PrecedesTilde; with a semi-colon 15 B
001207 html5lib/namedEntities/0800 html5lib-tests &Prime Bad named entity: Prime without a semi-colon 6 B
001208 html5lib/namedEntities/0801 html5lib-tests ″ Named entity: Prime; with a semi-colon 7 B
001209 html5lib/namedEntities/0802 html5lib-tests &Product Bad named entity: Product without a semi-colon 8 B
001210 html5lib/namedEntities/0803 html5lib-tests ∏ Named entity: Product; with a semi-colon 9 B
001211 html5lib/namedEntities/0804 html5lib-tests &Proportion Bad named entity: Proportion without a semi-colon 11 B
001212 html5lib/namedEntities/0805 html5lib-tests ∷ Named entity: Proportion; with a semi-colon 12 B
001213 html5lib/namedEntities/0806 html5lib-tests &Proportional Bad named entity: Proportional without a semi-colon 13 B
001214 html5lib/namedEntities/0807 html5lib-tests ∝ Named entity: Proportional; with a semi-colon 14 B
001215 html5lib/namedEntities/0808 html5lib-tests &Pscr Bad named entity: Pscr without a semi-colon 5 B
001216 html5lib/namedEntities/0809 html5lib-tests 𝒫 Named entity: Pscr; with a semi-colon 6 B
001217 html5lib/namedEntities/0810 html5lib-tests &Psi Bad named entity: Psi without a semi-colon 4 B
001218 html5lib/namedEntities/0811 html5lib-tests Ψ Named entity: Psi; with a semi-colon 5 B
001219 html5lib/namedEntities/0812 html5lib-tests " Named entity: QUOT without a semi-colon 5 B
001220 html5lib/namedEntities/0813 html5lib-tests " Named entity: QUOT; with a semi-colon 6 B
001221 html5lib/namedEntities/0814 html5lib-tests &Qfr Bad named entity: Qfr without a semi-colon 4 B
001222 html5lib/namedEntities/0815 html5lib-tests 𝔔 Named entity: Qfr; with a semi-colon 5 B
001223 html5lib/namedEntities/0816 html5lib-tests &Qopf Bad named entity: Qopf without a semi-colon 5 B
001224 html5lib/namedEntities/0817 html5lib-tests ℚ Named entity: Qopf; with a semi-colon 6 B
001225 html5lib/namedEntities/0818 html5lib-tests &Qscr Bad named entity: Qscr without a semi-colon 5 B
001226 html5lib/namedEntities/0819 html5lib-tests 𝒬 Named entity: Qscr; with a semi-colon 6 B
001227 html5lib/namedEntities/0820 html5lib-tests &RBarr Bad named entity: RBarr without a semi-colon 6 B
001228 html5lib/namedEntities/0821 html5lib-tests ⤐ Named entity: RBarr; with a semi-colon 7 B
001229 html5lib/namedEntities/0822 html5lib-tests ® Named entity: REG without a semi-colon 4 B
001230 html5lib/namedEntities/0823 html5lib-tests ® Named entity: REG; with a semi-colon 5 B
001231 html5lib/namedEntities/0824 html5lib-tests &Racute Bad named entity: Racute without a semi-colon 7 B
001232 html5lib/namedEntities/0825 html5lib-tests Ŕ Named entity: Racute; with a semi-colon 8 B
001233 html5lib/namedEntities/0826 html5lib-tests &Rang Bad named entity: Rang without a semi-colon 5 B
001234 html5lib/namedEntities/0827 html5lib-tests ⟫ Named entity: Rang; with a semi-colon 6 B
001235 html5lib/namedEntities/0828 html5lib-tests &Rarr Bad named entity: Rarr without a semi-colon 5 B
001236 html5lib/namedEntities/0829 html5lib-tests ↠ Named entity: Rarr; with a semi-colon 6 B
001237 html5lib/namedEntities/0830 html5lib-tests &Rarrtl Bad named entity: Rarrtl without a semi-colon 7 B
001238 html5lib/namedEntities/0831 html5lib-tests ⤖ Named entity: Rarrtl; with a semi-colon 8 B
001239 html5lib/namedEntities/0832 html5lib-tests &Rcaron Bad named entity: Rcaron without a semi-colon 7 B
001240 html5lib/namedEntities/0833 html5lib-tests Ř Named entity: Rcaron; with a semi-colon 8 B
001241 html5lib/namedEntities/0834 html5lib-tests &Rcedil Bad named entity: Rcedil without a semi-colon 7 B
001242 html5lib/namedEntities/0835 html5lib-tests Ŗ Named entity: Rcedil; with a semi-colon 8 B
001243 html5lib/namedEntities/0836 html5lib-tests &Rcy Bad named entity: Rcy without a semi-colon 4 B
001244 html5lib/namedEntities/0837 html5lib-tests Р Named entity: Rcy; with a semi-colon 5 B
001245 html5lib/namedEntities/0838 html5lib-tests &Re Bad named entity: Re without a semi-colon 3 B
001246 html5lib/namedEntities/0839 html5lib-tests ℜ Named entity: Re; with a semi-colon 4 B
001247 html5lib/namedEntities/0840 html5lib-tests &ReverseElement Bad named entity: ReverseElement without a semi-colon 15 B
001248 html5lib/namedEntities/0841 html5lib-tests ∋ Named entity: ReverseElement; with a semi-colon 16 B
001249 html5lib/namedEntities/0842 html5lib-tests &ReverseEquilibrium Bad named entity: ReverseEquilibrium without a semi-colon 19 B
001250 html5lib/namedEntities/0843 html5lib-tests ⇋ Named entity: ReverseEquilibrium; with a semi-colon 20 B
001251 html5lib/namedEntities/0844 html5lib-tests &ReverseUpEquilibrium Bad named entity: ReverseUpEquilibrium without a semi-colon 21 B
001252 html5lib/namedEntities/0845 html5lib-tests ⥯ Named entity: ReverseUpEquilibrium; with a semi-colon 22 B
001253 html5lib/namedEntities/0846 html5lib-tests &Rfr Bad named entity: Rfr without a semi-colon 4 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.