org.w3c.dom.NamedNodeMap.setNamedItem
method
public setNamedItem(arg as Node) as Node throws DOMException
Description

Adds or replaces a named node.

Parameters
  • arg Node to store.
Returns

Previously stored node with the same name, or null.

Throws
  • DOMException if the node cannot be stored.
Example
previous = attributes.setNamedItem(attr)