Hacker News new | past | comments | ask | show | jobs | submit login

This shard implements a CSS selector API on top of an html parser: https://github.com/kostya/modest



If only it was compatible with the existing XML interface...


XML has way more surface area than HTML, you could only query a small subset of valid XML documents with CSS. Plus, these days nobody uses XML parsers for HTML anymore, their behavior has diverged; things like behaviour of unclosed elements, valid children tags, are defined in the HTML spec and not possible in XML.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: