untitaker / html5gum

A WHATWG-compliant HTML5 tokenizer and tag soup parser
MIT License
148 stars 11 forks source link

[breaking change] Allow setting certain parser states, take 2 #41

Closed untitaker closed 2 years ago

untitaker commented 2 years ago

Fix #11

This is similar to https://github.com/untitaker/html5gum/pull/13 but built in such a way that it works for custom emitters and token structures as well (which already have to keep track of the most recent start tag)