> By the way, SCRIPT tag tokenization is a hell of an effort. I had to draw a <i>graph</i> [...] Next in turn are the CSS parser and Renderer.<p>CSS parsing should be ok, but layout computation is hard, especially with all the latest specs. The graph presented in the article will be the size of a postage stamp on an aircraft carrier deck.<p>Take a look at the Cassowary constraint solver, btw: <a href="http://overconstrained.io/" rel="nofollow">http://overconstrained.io/</a><p>> I'm writing them all by myself, still full of energy.<p>I wish the author the best of luck.
<a href="https://github.com/servo/html5ever" rel="nofollow">https://github.com/servo/html5ever</a> seems to also have a (not yet complete) C API
Interesting to see, just took handmade xml parser as a personal challenge, in python though, I've been hitting nasty performance issues compared to libxml2.