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
5,931 of 6,835 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 004154 | html5lib/namedEntities/3747 html5lib-tests |
¹
|
6 B | |
| 004155 | html5lib/namedEntities/3748 html5lib-tests |
²
|
5 B | |
| 004156 | html5lib/namedEntities/3749 html5lib-tests |
²
|
6 B | |
| 004157 | html5lib/namedEntities/3750 html5lib-tests |
³
|
5 B | |
| 004158 | html5lib/namedEntities/3751 html5lib-tests |
³
|
6 B | |
| 004159 | html5lib/namedEntities/3752 html5lib-tests |
⊃
|
5 B | |
| 004160 | html5lib/namedEntities/3753 html5lib-tests |
&supE
|
5 B | |
| 004161 | html5lib/namedEntities/3754 html5lib-tests |
⫆
|
6 B | |
| 004162 | html5lib/namedEntities/3755 html5lib-tests |
&supdot
|
7 B | |
| 004163 | html5lib/namedEntities/3756 html5lib-tests |
⪾
|
8 B | |
| 004164 | html5lib/namedEntities/3757 html5lib-tests |
&supdsub
|
8 B | |
| 004165 | html5lib/namedEntities/3758 html5lib-tests |
⫘
|
9 B | |
| 004166 | html5lib/namedEntities/3759 html5lib-tests |
&supe
|
5 B | |
| 004167 | html5lib/namedEntities/3760 html5lib-tests |
⊇
|
6 B | |
| 004168 | html5lib/namedEntities/3761 html5lib-tests |
&supedot
|
8 B | |
| 004169 | html5lib/namedEntities/3762 html5lib-tests |
⫄
|
9 B | |
| 004170 | html5lib/namedEntities/3763 html5lib-tests |
&suphsol
|
8 B | |
| 004171 | html5lib/namedEntities/3764 html5lib-tests |
⟉
|
9 B | |
| 004172 | html5lib/namedEntities/3765 html5lib-tests |
&suphsub
|
8 B | |
| 004173 | html5lib/namedEntities/3766 html5lib-tests |
⫗
|
9 B | |
| 004174 | html5lib/namedEntities/3767 html5lib-tests |
&suplarr
|
8 B | |
| 004175 | html5lib/namedEntities/3768 html5lib-tests |
⥻
|
9 B | |
| 004176 | html5lib/namedEntities/3769 html5lib-tests |
&supmult
|
8 B | |
| 004177 | html5lib/namedEntities/3770 html5lib-tests |
⫂
|
9 B | |
| 004178 | html5lib/namedEntities/3771 html5lib-tests |
&supnE
|
6 B | |
| 004179 | html5lib/namedEntities/3772 html5lib-tests |
⫌
|
7 B | |
| 004180 | html5lib/namedEntities/3773 html5lib-tests |
&supne
|
6 B | |
| 004181 | html5lib/namedEntities/3774 html5lib-tests |
⊋
|
7 B | |
| 004182 | html5lib/namedEntities/3775 html5lib-tests |
&supplus
|
8 B | |
| 004183 | html5lib/namedEntities/3776 html5lib-tests |
⫀
|
9 B | |
| 004184 | html5lib/namedEntities/3777 html5lib-tests |
&supset
|
7 B | |
| 004185 | html5lib/namedEntities/3778 html5lib-tests |
⊃
|
8 B | |
| 004186 | html5lib/namedEntities/3779 html5lib-tests |
&supseteq
|
9 B | |
| 004187 | html5lib/namedEntities/3780 html5lib-tests |
⊇
|
10 B | |
| 004188 | html5lib/namedEntities/3781 html5lib-tests |
&supseteqq
|
10 B | |
| 004189 | html5lib/namedEntities/3782 html5lib-tests |
⫆
|
11 B | |
| 004190 | html5lib/namedEntities/3783 html5lib-tests |
&supsetneq
|
10 B | |
| 004191 | html5lib/namedEntities/3784 html5lib-tests |
⊋
|
11 B | |
| 004192 | html5lib/namedEntities/3785 html5lib-tests |
&supsetneqq
|
11 B | |
| 004193 | html5lib/namedEntities/3786 html5lib-tests |
⫌
|
12 B | |
| 004194 | html5lib/namedEntities/3787 html5lib-tests |
&supsim
|
7 B | |
| 004195 | html5lib/namedEntities/3788 html5lib-tests |
⫈
|
8 B | |
| 004196 | html5lib/namedEntities/3789 html5lib-tests |
&supsub
|
7 B | |
| 004197 | html5lib/namedEntities/3790 html5lib-tests |
⫔
|
8 B | |
| 004198 | html5lib/namedEntities/3791 html5lib-tests |
&supsup
|
7 B | |
| 004199 | html5lib/namedEntities/3792 html5lib-tests |
⫖
|
8 B | |
| 004200 | html5lib/namedEntities/3793 html5lib-tests |
&swArr
|
6 B | |
| 004201 | html5lib/namedEntities/3794 html5lib-tests |
⇙
|
7 B | |
| 004202 | html5lib/namedEntities/3795 html5lib-tests |
&swarhk
|
7 B | |
| 004203 | html5lib/namedEntities/3796 html5lib-tests |
⤦
|
8 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