3 ms·
This shard implements a CSS selector API on top of an html parser: https://github.com/kostya/modest https://github.com/kostya/modest
by ricardobeat 9y ago
This shard implements a CSS selector API on top of an html parser: https://github.com/kostya/modest https://github.com/kostya/modest
- RX14 9y agoIf only it was compatible with the existing XML interface...
- ricardobeat 9y agoXML 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.