Method: Nokogiri::CSS::XPathVisitor#visit_not
- Defined in:
- lib/nokogiri/css/xpath_visitor.rb
#visit_not(node) ⇒ Object
140 141 142 143 144 145 146 147 |
# File 'lib/nokogiri/css/xpath_visitor.rb', line 140 def visit_not(node) child = node.value.first if :ELEMENT_NAME == child.type "not(self::#{child.accept(self)})" else "not(#{child.accept(self)})" end end |