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



643
644
645
646
647
# File 'lib/nokogiri/xml/node.rb', line 643

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