3 ms·
Would love to have a nokogiri-level xpath or css3 selector capabilities. I'm up to my neck with projects, but this looks like a good start: https://github.com/j
by nurettin 9y ago
Would love to have a nokogiri-level xpath or css3 selector capabilities. I'm up to my neck with projects, but this looks like a good start: https://github.com/jgehring/hcxselect/tree/83d3edaa8a6944d20c9835889ca7cf9a72f994ef https://github.com/jgehring/hcxselect/tree/83d3edaa8a6944d20...
- RX14 9y agoWe have libxml2 bound in the stdlib with xpath support, do you need more?
- ricardobeat 9y agoThis 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.