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

2,241 of 6,835 cases

Case Name Expected Note Size
000403 html5lib/numericEntities/0332 html5lib-tests 󰀀 Valid numeric entity character U+F0000 9 B
000404 html5lib/numericEntities/0333 html5lib-tests 󿿽 Valid numeric entity character U+FFFFD 9 B
000405 html5lib/numericEntities/0334 html5lib-tests 􀀀 Valid numeric entity character U+100000 10 B
000406 html5lib/numericEntities/0335 html5lib-tests 􏿽 Valid numeric entity character U+10FFFD 10 B
004635 control-01-decimal Focused regression ␁ Kept, unlike CPython's html.unescape 4 B
004636 control-01-hex Focused regression ␁ Kept, unlike CPython's html.unescape 5 B
004637 control-02-decimal Focused regression ␂ Kept, unlike CPython's html.unescape 4 B
004638 control-02-hex Focused regression ␂ Kept, unlike CPython's html.unescape 5 B
004639 control-03-decimal Focused regression ␃ Kept, unlike CPython's html.unescape 4 B
004640 control-03-hex Focused regression ␃ Kept, unlike CPython's html.unescape 5 B
004641 control-04-decimal Focused regression ␄ Kept, unlike CPython's html.unescape 4 B
004642 control-04-hex Focused regression ␄ Kept, unlike CPython's html.unescape 5 B
004643 control-05-decimal Focused regression ␅ Kept, unlike CPython's html.unescape 4 B
004644 control-05-hex Focused regression ␅ Kept, unlike CPython's html.unescape 5 B
004645 control-06-decimal Focused regression ␆ Kept, unlike CPython's html.unescape 4 B
004646 control-06-hex Focused regression ␆ Kept, unlike CPython's html.unescape 5 B
004647 control-07-decimal Focused regression ␇ Kept, unlike CPython's html.unescape 4 B
004648 control-07-hex Focused regression ␇ Kept, unlike CPython's html.unescape 5 B
004649 control-08-decimal Focused regression ␈ Kept, unlike CPython's html.unescape 4 B
004650 control-08-hex Focused regression ␈ Kept, unlike CPython's html.unescape 5 B
004651 control-09-decimal Focused regression ␉ Kept, unlike CPython's html.unescape 4 B
004652 control-09-hex Focused regression ␉ Kept, unlike CPython's html.unescape 5 B
004653 control-0a-decimal Focused regression ␊ Kept, unlike CPython's html.unescape 5 B
004654 control-0a-hex Focused regression ␊ Kept, unlike CPython's html.unescape 5 B
004655 control-0b-decimal Focused regression ␋ Kept, unlike CPython's html.unescape 5 B
004656 control-0b-hex Focused regression ␋ Kept, unlike CPython's html.unescape 5 B
004657 control-0c-decimal Focused regression ␌ Kept, unlike CPython's html.unescape 5 B
004658 control-0c-hex Focused regression ␌ Kept, unlike CPython's html.unescape 5 B
004659 control-0d-decimal Focused regression ␍ Kept, unlike CPython's html.unescape 5 B
004660 control-0d-hex Focused regression ␍ Kept, unlike CPython's html.unescape 5 B
004661 control-0e-decimal Focused regression ␎ Kept, unlike CPython's html.unescape 5 B
004662 control-0e-hex Focused regression ␎ Kept, unlike CPython's html.unescape 5 B
004663 control-0f-decimal Focused regression ␏ Kept, unlike CPython's html.unescape 5 B
004664 control-0f-hex Focused regression ␏ Kept, unlike CPython's html.unescape 5 B
004665 control-10-decimal Focused regression ␐ Kept, unlike CPython's html.unescape 5 B
004666 control-10-hex Focused regression ␐ Kept, unlike CPython's html.unescape 6 B
004667 control-11-decimal Focused regression ␑ Kept, unlike CPython's html.unescape 5 B
004668 control-11-hex Focused regression ␑ Kept, unlike CPython's html.unescape 6 B
004669 control-12-decimal Focused regression ␒ Kept, unlike CPython's html.unescape 5 B
004670 control-12-hex Focused regression ␒ Kept, unlike CPython's html.unescape 6 B
004671 control-13-decimal Focused regression ␓ Kept, unlike CPython's html.unescape 5 B
004672 control-13-hex Focused regression ␓ Kept, unlike CPython's html.unescape 6 B
004673 control-14-decimal Focused regression ␔ Kept, unlike CPython's html.unescape 5 B
004674 control-14-hex Focused regression ␔ Kept, unlike CPython's html.unescape 6 B
004675 control-15-decimal Focused regression ␕ Kept, unlike CPython's html.unescape 5 B
004676 control-15-hex Focused regression ␕ Kept, unlike CPython's html.unescape 6 B
004677 control-16-decimal Focused regression ␖ Kept, unlike CPython's html.unescape 5 B
004678 control-16-hex Focused regression ␖ Kept, unlike CPython's html.unescape 6 B
004679 control-17-decimal Focused regression ␗ Kept, unlike CPython's html.unescape 5 B
004680 control-17-hex Focused regression ␗ Kept, unlike CPython's html.unescape 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.