5 ms·
Would love to hear your take on the good and bad parts of Crystal. Been toying around with it for a few small things, and been following the blog... would love
by wiremine 9y ago
Would love to hear your take on the good and bad parts of Crystal. Been toying around with it for a few small things, and been following the blog... would love to hear more input from users. :-)
- nurettin 9y agoWould 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.