Nokogiri 'not' selector

Is there a way in Nokogiri to select all elements that don't match a selector. In jQuery I'd use:

:not(*[@class='someclass'])

However the following code gives me an xpath syntax error

dom = Nokogiri::HTML(@file)
dom.css(":not(*[@class='someclass'])")
5
задан Jamie 9 March 2011 в 17:20
поделиться