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
004550 html5lib/namedEntities/4143 html5lib-tests ⨁ Named entity: xoplus; with a semi-colon 8 B
004551 html5lib/namedEntities/4144 html5lib-tests &xotime Bad named entity: xotime without a semi-colon 7 B
004552 html5lib/namedEntities/4145 html5lib-tests ⨂ Named entity: xotime; with a semi-colon 8 B
004553 html5lib/namedEntities/4146 html5lib-tests &xrArr Bad named entity: xrArr without a semi-colon 6 B
004554 html5lib/namedEntities/4147 html5lib-tests ⟹ Named entity: xrArr; with a semi-colon 7 B
004555 html5lib/namedEntities/4148 html5lib-tests &xrarr Bad named entity: xrarr without a semi-colon 6 B
004556 html5lib/namedEntities/4149 html5lib-tests ⟶ Named entity: xrarr; with a semi-colon 7 B
004557 html5lib/namedEntities/4150 html5lib-tests &xscr Bad named entity: xscr without a semi-colon 5 B
004558 html5lib/namedEntities/4151 html5lib-tests 𝓍 Named entity: xscr; with a semi-colon 6 B
004559 html5lib/namedEntities/4152 html5lib-tests &xsqcup Bad named entity: xsqcup without a semi-colon 7 B
004560 html5lib/namedEntities/4153 html5lib-tests ⨆ Named entity: xsqcup; with a semi-colon 8 B
004561 html5lib/namedEntities/4154 html5lib-tests &xuplus Bad named entity: xuplus without a semi-colon 7 B
004562 html5lib/namedEntities/4155 html5lib-tests ⨄ Named entity: xuplus; with a semi-colon 8 B
004563 html5lib/namedEntities/4156 html5lib-tests &xutri Bad named entity: xutri without a semi-colon 6 B
004564 html5lib/namedEntities/4157 html5lib-tests △ Named entity: xutri; with a semi-colon 7 B
004565 html5lib/namedEntities/4158 html5lib-tests &xvee Bad named entity: xvee without a semi-colon 5 B
004566 html5lib/namedEntities/4159 html5lib-tests ⋁ Named entity: xvee; with a semi-colon 6 B
004567 html5lib/namedEntities/4160 html5lib-tests &xwedge Bad named entity: xwedge without a semi-colon 7 B
004568 html5lib/namedEntities/4161 html5lib-tests ⋀ Named entity: xwedge; with a semi-colon 8 B
004569 html5lib/namedEntities/4162 html5lib-tests ý Named entity: yacute without a semi-colon 7 B
004570 html5lib/namedEntities/4163 html5lib-tests ý Named entity: yacute; with a semi-colon 8 B
004571 html5lib/namedEntities/4164 html5lib-tests &yacy Bad named entity: yacy without a semi-colon 5 B
004572 html5lib/namedEntities/4165 html5lib-tests я Named entity: yacy; with a semi-colon 6 B
004573 html5lib/namedEntities/4166 html5lib-tests &ycirc Bad named entity: ycirc without a semi-colon 6 B
004574 html5lib/namedEntities/4167 html5lib-tests ŷ Named entity: ycirc; with a semi-colon 7 B
004575 html5lib/namedEntities/4168 html5lib-tests &ycy Bad named entity: ycy without a semi-colon 4 B
004576 html5lib/namedEntities/4169 html5lib-tests ы Named entity: ycy; with a semi-colon 5 B
004577 html5lib/namedEntities/4170 html5lib-tests ¥ Named entity: yen without a semi-colon 4 B
004578 html5lib/namedEntities/4171 html5lib-tests ¥ Named entity: yen; with a semi-colon 5 B
004579 html5lib/namedEntities/4172 html5lib-tests &yfr Bad named entity: yfr without a semi-colon 4 B
004580 html5lib/namedEntities/4173 html5lib-tests 𝔶 Named entity: yfr; with a semi-colon 5 B
004581 html5lib/namedEntities/4174 html5lib-tests &yicy Bad named entity: yicy without a semi-colon 5 B
004582 html5lib/namedEntities/4175 html5lib-tests ї Named entity: yicy; with a semi-colon 6 B
004583 html5lib/namedEntities/4176 html5lib-tests &yopf Bad named entity: yopf without a semi-colon 5 B
004584 html5lib/namedEntities/4177 html5lib-tests 𝕪 Named entity: yopf; with a semi-colon 6 B
004585 html5lib/namedEntities/4178 html5lib-tests &yscr Bad named entity: yscr without a semi-colon 5 B
004586 html5lib/namedEntities/4179 html5lib-tests 𝓎 Named entity: yscr; with a semi-colon 6 B
004587 html5lib/namedEntities/4180 html5lib-tests &yucy Bad named entity: yucy without a semi-colon 5 B
004588 html5lib/namedEntities/4181 html5lib-tests ю Named entity: yucy; with a semi-colon 6 B
004589 html5lib/namedEntities/4182 html5lib-tests ÿ Named entity: yuml without a semi-colon 5 B
004590 html5lib/namedEntities/4183 html5lib-tests ÿ Named entity: yuml; with a semi-colon 6 B
004591 html5lib/namedEntities/4184 html5lib-tests &zacute Bad named entity: zacute without a semi-colon 7 B
004592 html5lib/namedEntities/4185 html5lib-tests ź Named entity: zacute; with a semi-colon 8 B
004593 html5lib/namedEntities/4186 html5lib-tests &zcaron Bad named entity: zcaron without a semi-colon 7 B
004594 html5lib/namedEntities/4187 html5lib-tests ž Named entity: zcaron; with a semi-colon 8 B
004595 html5lib/namedEntities/4188 html5lib-tests &zcy Bad named entity: zcy without a semi-colon 4 B
004596 html5lib/namedEntities/4189 html5lib-tests з Named entity: zcy; with a semi-colon 5 B
004597 html5lib/namedEntities/4190 html5lib-tests &zdot Bad named entity: zdot without a semi-colon 5 B
004598 html5lib/namedEntities/4191 html5lib-tests ż Named entity: zdot; with a semi-colon 6 B
004599 html5lib/namedEntities/4192 html5lib-tests &zeetrf Bad named entity: zeetrf without a semi-colon 7 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.