2 ms·
Perhaps a better comparisson is this: https://github.com/servo/html5ever/blob/master/html5ever/src/tokenizer/mod.rs#L683 https://github.com/servo/html5ever/blob
by Ygg2 9y ago
Perhaps a better comparisson is this:
https://github.com/servo/html5ever/blob/master/html5ever/src/tokenizer/mod.rs#L683 https://github.com/servo/html5ever/blob/master/html5ever/src...
https://html.spec.whatwg.org/multipage/parsing.html#data-state https://html.spec.whatwg.org/multipage/parsing.html#data-sta...
Where spec:
U+0000 NULL ->
This is an unexpected-null-character parse error. Emit the current input character as a character token.
translates into:
FromSet('\0') => go!(self: error; emit '\0'),
If you ignore the FromSet which is used for small set of characters, and `go!` which is a macro, you get something akin to:
'\0' => emit_error; emit '\0'