setNamedItemNS: arg(2)
Identical in function to the basic setNamedItem
method, except that it
considers namespace properties in the Node
object. A reference to the replaced
Node
object is returned.
The Node
object to
be stored in the map. The values of the namespaceURI
and localName
properties are used as
the lookup key. If another node with identical values for
these two properties exists, the new node replaces
it.
Raised if a document different than the creator of the
target NamedNodeMap
created the arg
node.
Raised if the NamedNodeMap
is read-only.
Raised if the arg
node is an Attr
node
already in use by another element's attributes
map.