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
2,241 of 6,835 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 000253 | html5lib/numericEntities/0182 html5lib-tests |
j
|
8 B | |
| 000254 | html5lib/numericEntities/0183 html5lib-tests |
k
|
8 B | |
| 000255 | html5lib/numericEntities/0184 html5lib-tests |
l
|
8 B | |
| 000256 | html5lib/numericEntities/0185 html5lib-tests |
m
|
8 B | |
| 000257 | html5lib/numericEntities/0186 html5lib-tests |
n
|
8 B | |
| 000258 | html5lib/numericEntities/0187 html5lib-tests |
o
|
8 B | |
| 000259 | html5lib/numericEntities/0188 html5lib-tests |
p
|
8 B | |
| 000260 | html5lib/numericEntities/0189 html5lib-tests |
q
|
8 B | |
| 000261 | html5lib/numericEntities/0190 html5lib-tests |
r
|
8 B | |
| 000262 | html5lib/numericEntities/0191 html5lib-tests |
s
|
8 B | |
| 000263 | html5lib/numericEntities/0192 html5lib-tests |
t
|
8 B | |
| 000264 | html5lib/numericEntities/0193 html5lib-tests |
u
|
8 B | |
| 000265 | html5lib/numericEntities/0194 html5lib-tests |
v
|
8 B | |
| 000266 | html5lib/numericEntities/0195 html5lib-tests |
w
|
8 B | |
| 000267 | html5lib/numericEntities/0196 html5lib-tests |
x
|
8 B | |
| 000268 | html5lib/numericEntities/0197 html5lib-tests |
y
|
8 B | |
| 000269 | html5lib/numericEntities/0198 html5lib-tests |
z
|
8 B | |
| 000270 | html5lib/numericEntities/0199 html5lib-tests |
{
|
8 B | |
| 000271 | html5lib/numericEntities/0200 html5lib-tests |
|
|
8 B | |
| 000272 | html5lib/numericEntities/0201 html5lib-tests |
}
|
8 B | |
| 000273 | html5lib/numericEntities/0202 html5lib-tests |
~
|
8 B | |
| 000274 | html5lib/numericEntities/0203 html5lib-tests |
⟨U+00A0⟩
|
8 B | |
| 000275 | html5lib/numericEntities/0204 html5lib-tests |
¡
|
8 B | |
| 000276 | html5lib/numericEntities/0205 html5lib-tests |
¢
|
8 B | |
| 000277 | html5lib/numericEntities/0206 html5lib-tests |
£
|
8 B | |
| 000278 | html5lib/numericEntities/0207 html5lib-tests |
¤
|
8 B | |
| 000279 | html5lib/numericEntities/0208 html5lib-tests |
¥
|
8 B | |
| 000280 | html5lib/numericEntities/0209 html5lib-tests |
¦
|
8 B | |
| 000281 | html5lib/numericEntities/0210 html5lib-tests |
§
|
8 B | |
| 000282 | html5lib/numericEntities/0211 html5lib-tests |
¨
|
8 B | |
| 000283 | html5lib/numericEntities/0212 html5lib-tests |
©
|
8 B | |
| 000284 | html5lib/numericEntities/0213 html5lib-tests |
ª
|
8 B | |
| 000285 | html5lib/numericEntities/0214 html5lib-tests |
«
|
8 B | |
| 000286 | html5lib/numericEntities/0215 html5lib-tests |
¬
|
8 B | |
| 000287 | html5lib/numericEntities/0216 html5lib-tests |
⟨U+00AD⟩
|
8 B | |
| 000288 | html5lib/numericEntities/0217 html5lib-tests |
®
|
8 B | |
| 000289 | html5lib/numericEntities/0218 html5lib-tests |
¯
|
8 B | |
| 000290 | html5lib/numericEntities/0219 html5lib-tests |
°
|
8 B | |
| 000291 | html5lib/numericEntities/0220 html5lib-tests |
±
|
8 B | |
| 000292 | html5lib/numericEntities/0221 html5lib-tests |
²
|
8 B | |
| 000293 | html5lib/numericEntities/0222 html5lib-tests |
³
|
8 B | |
| 000294 | html5lib/numericEntities/0223 html5lib-tests |
´
|
8 B | |
| 000295 | html5lib/numericEntities/0224 html5lib-tests |
µ
|
8 B | |
| 000296 | html5lib/numericEntities/0225 html5lib-tests |
¶
|
8 B | |
| 000297 | html5lib/numericEntities/0226 html5lib-tests |
·
|
8 B | |
| 000298 | html5lib/numericEntities/0227 html5lib-tests |
¸
|
8 B | |
| 000299 | html5lib/numericEntities/0228 html5lib-tests |
¹
|
8 B | |
| 000300 | html5lib/numericEntities/0229 html5lib-tests |
º
|
8 B | |
| 000301 | html5lib/numericEntities/0230 html5lib-tests |
»
|
8 B | |
| 000302 | html5lib/numericEntities/0231 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