How Do I Select for Multiple Classes Using Nokogiri and Ruby
- by Russ Bradberry
From a table element, I would like to select all rows that have the class even or the class odd.
I tried the jQuery syntax:
report.css("table.data tr[class~=odd even]").each{|line| parse_line_item(line)}
but it threw an error, any help is appreciated, thanks.