Method: Nokogiri::XML::Node#remove_attribute

Defined in:
lib/nokogiri/xml/node.rb

#remove_attribute(name) ⇒ Object Also known as: delete

Remove the attribute named name



718
719
720
721
722
# File 'lib/nokogiri/xml/node.rb', line 718

def remove_attribute(name)
  attr = attributes[name].remove if key?(name)
  clear_xpath_context if Nokogiri.jruby?
  attr
end