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
31 of 6,835 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 004791 | named-notit Focused regression |
I'm ¬it; I tell you
|
22 B | |
| 004792 | named-notin-no-semicolon Focused regression |
¬in
|
6 B | |
| 004793 | named-notin Focused regression |
∉
|
7 B | |
| 004794 | named-amp-equals Focused regression |
&=
|
5 B | |
| 004795 | named-copy-query Focused regression |
?x=1©=2
|
11 B | |
| 004796 | named-amp-letter Focused regression |
&x
|
5 B | |
| 004797 | named-amp-unicode Focused regression |
&é
|
6 B | |
| 004798 | named-amp-hash Focused regression |
&#
|
5 B | |
| 004799 | named-amp-amp Focused regression |
&
|
8 B | |
| 004800 | named-hellip-no-semicolon Focused regression |
&hellip
|
7 B | |
| 004801 | named-hellip Focused regression |
…
|
8 B | |
| 004802 | named-upper-amp Focused regression |
&&
|
9 B | |
| 004803 | named-mixed-case-unknown Focused regression |
&Amp;&aMp;
|
10 B | |
| 004804 | named-lt-tag Focused regression |
<<b>>
|
9 B | |
| 004805 | named-lt-gt-run Focused regression |
><<
|
10 B | |
| 004806 | named-two-letter-prefix Focused regression |
<x>x<x>x
|
16 B | |
| 004807 | named-unknown Focused regression |
&foo; &no; &qwerty
|
18 B | |
| 004808 | query-string Focused regression |
/search?q=1&lang=en©=2¬=3®¶=4§=5×=6
|
58 B | |
| 004809 | named-CounterClockwiseContourIntegral Focused regression |
∳&CounterClockwiseContourIntegral
|
65 B | |
| 004810 | named-DoubleLongLeftRightArrow Focused regression |
⟺&DoubleLongLeftRightArrow
|
51 B | |
| 004811 | named-ThickSpace Focused regression |
&ThickSpace
|
23 B | |
| 004812 | named-nGt Focused regression |
≫⃒&nGt
|
9 B | |
| 004813 | named-nLt Focused regression |
≪⃒&nLt
|
9 B | |
| 004814 | named-fjlig Focused regression |
fj&fjlig
|
13 B | |
| 004815 | named-acE Focused regression |
∾̳&acE
|
9 B | |
| 004816 | named-NotNestedGreaterGreater Focused regression |
⪢̸&NotNestedGreaterGreater
|
49 B | |
| 004817 | named-bne Focused regression |
=⃥&bne
|
9 B | |
| 004818 | named-race Focused regression |
∽̱&race
|
11 B | |
| 004819 | named-Lt Focused regression |
≪&Lt
|
7 B | |
| 004820 | named-LT Focused regression |
<<
|
7 B | |
| 004821 | named-lt Focused regression |
<<
|
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.
- Named character references — the table of 2,231 names, including the legacy ones that work without a semicolon
- Numeric character reference end state — the Windows-1252 remapping and the rules for 0, surrogates and out-of-range numbers
- html5lib-tests tokenizer tests — the source of the 4,617 html5lib cases