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
001604 html5lib/namedEntities/1197 html5lib-tests á Named entity: aacute; with a semi-colon 8 B
001605 html5lib/namedEntities/1198 html5lib-tests &abreve Bad named entity: abreve without a semi-colon 7 B
001606 html5lib/namedEntities/1199 html5lib-tests ă Named entity: abreve; with a semi-colon 8 B
001607 html5lib/namedEntities/1200 html5lib-tests &ac Bad named entity: ac without a semi-colon 3 B
001608 html5lib/namedEntities/1201 html5lib-tests ∾ Named entity: ac; with a semi-colon 4 B
001609 html5lib/namedEntities/1202 html5lib-tests &acE Bad named entity: acE without a semi-colon 4 B
001610 html5lib/namedEntities/1203 html5lib-tests ∾̳ Named entity: acE; with a semi-colon 5 B
001611 html5lib/namedEntities/1204 html5lib-tests &acd Bad named entity: acd without a semi-colon 4 B
001612 html5lib/namedEntities/1205 html5lib-tests ∿ Named entity: acd; with a semi-colon 5 B
001613 html5lib/namedEntities/1206 html5lib-tests â Named entity: acirc without a semi-colon 6 B
001614 html5lib/namedEntities/1207 html5lib-tests â Named entity: acirc; with a semi-colon 7 B
001615 html5lib/namedEntities/1208 html5lib-tests ´ Named entity: acute without a semi-colon 6 B
001616 html5lib/namedEntities/1209 html5lib-tests ´ Named entity: acute; with a semi-colon 7 B
001617 html5lib/namedEntities/1210 html5lib-tests &acy Bad named entity: acy without a semi-colon 4 B
001618 html5lib/namedEntities/1211 html5lib-tests а Named entity: acy; with a semi-colon 5 B
001619 html5lib/namedEntities/1212 html5lib-tests æ Named entity: aelig without a semi-colon 6 B
001620 html5lib/namedEntities/1213 html5lib-tests æ Named entity: aelig; with a semi-colon 7 B
001621 html5lib/namedEntities/1214 html5lib-tests &af Bad named entity: af without a semi-colon 3 B
001622 html5lib/namedEntities/1215 html5lib-tests ⟨U+2061⟩ Named entity: af; with a semi-colon 4 B
001623 html5lib/namedEntities/1216 html5lib-tests &afr Bad named entity: afr without a semi-colon 4 B
001624 html5lib/namedEntities/1217 html5lib-tests 𝔞 Named entity: afr; with a semi-colon 5 B
001625 html5lib/namedEntities/1218 html5lib-tests à Named entity: agrave without a semi-colon 7 B
001626 html5lib/namedEntities/1219 html5lib-tests à Named entity: agrave; with a semi-colon 8 B
001627 html5lib/namedEntities/1220 html5lib-tests &alefsym Bad named entity: alefsym without a semi-colon 8 B
001628 html5lib/namedEntities/1221 html5lib-tests ℵ Named entity: alefsym; with a semi-colon 9 B
001629 html5lib/namedEntities/1222 html5lib-tests &aleph Bad named entity: aleph without a semi-colon 6 B
001630 html5lib/namedEntities/1223 html5lib-tests ℵ Named entity: aleph; with a semi-colon 7 B
001631 html5lib/namedEntities/1224 html5lib-tests &alpha Bad named entity: alpha without a semi-colon 6 B
001632 html5lib/namedEntities/1225 html5lib-tests α Named entity: alpha; with a semi-colon 7 B
001633 html5lib/namedEntities/1226 html5lib-tests &amacr Bad named entity: amacr without a semi-colon 6 B
001634 html5lib/namedEntities/1227 html5lib-tests ā Named entity: amacr; with a semi-colon 7 B
001635 html5lib/namedEntities/1228 html5lib-tests &amalg Bad named entity: amalg without a semi-colon 6 B
001636 html5lib/namedEntities/1229 html5lib-tests ⨿ Named entity: amalg; with a semi-colon 7 B
001637 html5lib/namedEntities/1230 html5lib-tests & Named entity: amp without a semi-colon 4 B
001638 html5lib/namedEntities/1231 html5lib-tests & Named entity: amp; with a semi-colon 5 B
001639 html5lib/namedEntities/1232 html5lib-tests &and Bad named entity: and without a semi-colon 4 B
001640 html5lib/namedEntities/1233 html5lib-tests ∧ Named entity: and; with a semi-colon 5 B
001641 html5lib/namedEntities/1234 html5lib-tests &andand Bad named entity: andand without a semi-colon 7 B
001642 html5lib/namedEntities/1235 html5lib-tests ⩕ Named entity: andand; with a semi-colon 8 B
001643 html5lib/namedEntities/1236 html5lib-tests &andd Bad named entity: andd without a semi-colon 5 B
001644 html5lib/namedEntities/1237 html5lib-tests ⩜ Named entity: andd; with a semi-colon 6 B
001645 html5lib/namedEntities/1238 html5lib-tests &andslope Bad named entity: andslope without a semi-colon 9 B
001646 html5lib/namedEntities/1239 html5lib-tests ⩘ Named entity: andslope; with a semi-colon 10 B
001647 html5lib/namedEntities/1240 html5lib-tests &andv Bad named entity: andv without a semi-colon 5 B
001648 html5lib/namedEntities/1241 html5lib-tests ⩚ Named entity: andv; with a semi-colon 6 B
001649 html5lib/namedEntities/1242 html5lib-tests &ang Bad named entity: ang without a semi-colon 4 B
001650 html5lib/namedEntities/1243 html5lib-tests ∠ Named entity: ang; with a semi-colon 5 B
001651 html5lib/namedEntities/1244 html5lib-tests &ange Bad named entity: ange without a semi-colon 5 B
001652 html5lib/namedEntities/1245 html5lib-tests ⦤ Named entity: ange; with a semi-colon 6 B
001653 html5lib/namedEntities/1246 html5lib-tests &angle Bad named entity: angle 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.