class Nokogiri::CSS::XPathVisitor

def html5_element_name_needs_namespace_handling(node)

def html5_element_name_needs_namespace_handling(node)
  # if this is the wildcard selector "*", use it as normal
  node.value.first != "*" &&
    # if there is already a namespace (i.e., it is a prefixed QName), use it as normal
    !node.value.first.include?(":")
end