News for hackers. Stuff that matters.
Re:Show HN: Python bindings to the Servo HTML5 parser, html5... by Ygg2 on Tuesday June 20, 2017 @08:45AM (#14594144)
Perhaps a better comparisson is this: https://github.com/servo/html5ever/blob/master/html5ever/src...

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'

There are no comments on this comment yet.