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



425
426
427
428
429
# File 'lib/nokogiri/xml/node.rb', line 425

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