module Capybara::XPathPatches::Renderer

def attribute(current, name)

def attribute(current, name)
  return super if name =~ /^[a-zA-Z_:][a-zA-Z0-9_:\.\-]*$/
  "#{current}/attribute::*[local-name(.) = #{string_literal(name)}]"
end