I got the name of a CSS class from a Nokogiri node. Now I want to find all the nodes that also have the same class attached.
I don't know which HTML tag the element that I'm looking for has, and how deep it is. All i know is what class to search for.
I have already tried:
But this seems to return WAY too many elements.
Also I have tried:
and this returns nothing.
I want to get the elements that contain that class, not every element that surrounds an element with that class.
Is it possible to do this with Nokogiri?