class Nokogiri::CSS::Node

def to_xpath prefix = '//', visitor = XPathVisitor.new

Convert this CSS node to xpath with +prefix+ using +visitor+
##
def to_xpath prefix = '//', visitor = XPathVisitor.new
  prefix = '.' if ALLOW_COMBINATOR_ON_SELF.include?(type) && value.first.nil?
  prefix + visitor.accept(self)
end