class Nokogiri::XML::Node

def remove_attribute(name)

Remove the attribute named +name+
##
def remove_attribute(name)
  attr = attributes[name].remove if key?(name)
  clear_xpath_context if Nokogiri.jruby?
  attr
end