RazrFalcon / xmlparser

A low-level, pull-based, zero-allocation XML 1.0 parser.
Apache License 2.0
130 stars 16 forks source link

Can I parse HTML5 with this crate? #16

Closed untitaker closed 3 years ago

untitaker commented 3 years ago

I've successfully used xmlparser to parse HTML, however I noticed that xmlparser does not accept attributes without quotes (and then some other things). Is this project willing to accept patches that are at least avoiding errors on html5 or is this entirely out of scope?

RazrFalcon commented 3 years ago

No. And this is not planed.

AFAIK, HTML5 is far more complex than simply omitting quotes around attribute values. It would be easier to simply fork the xmlparser and add an HTML specific stuff.

untitaker commented 2 years ago

thanks, just as an update I have since created https://github.com/untitaker/html5gum which solves my needs.