I can't find a clear, direct answer, but what's the difference between .at_css and .css in Nokogiri?
Nokogiri has synonyms for the search-and-find-everything, and the find-the-first-one methods.
search, /, xpath and css all search for every occurrence of the accessor and return a NodeSet.
at, %, at_xpath and at_css search for the first occurrence and return a Node. That is why the docs say they're equivalent to saying search('//some/path').first or css('some path').first.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With