A parser for well-formed XML 1.0 is a very different beast from a HTML parser. But there's this XML5 spec that is quite similar to HTML parsing and could re-use a lot of the machinery, if not the actual parse rules. Servo could potentially use this for all XML parts of the Web platform. See servo/servo#3319.
For the record, this has been proposed as a potential project for the VALS Semester of Code, so please talk to me before starting any work on this.
Awesome! I would love to help students with html5ever projects.
Adds XML5 parsing to html5ever
Adds XML5 parser based on [spec](https://github.com/annevk/xml5) by
@annevk. Currently working draft resides on
https://github.com/Ygg01/xml5_draft and is rendered using
This patch is only concerned with making it work right, according to
spec. Things to be done:
- Finish up the spec. Talk to SVG/MathML/XHTML people from Servo,
see what are their wishes. Lots of stuff is missing. Things like
stream definition, null handling,
- Unify XML5 and HTML5 parsers.
- Add support for DTD. Right now it panics. Perhaps this is
the correct behavior ;) (See [defused
xml.html) for juicy details )
- Add C API for XML parser
Started in https://github.com/Ygg01/xml5ever