setNamedItemNS method

Attr? setNamedItemNS(
  1. Attr attr
)

The setNamedItemNS() method of the NamedNodeMap interface puts the Attr identified by its name in the map. If there was already an Attr with the same name in the map, it is replaced.

Note: This method is an alias of setNamedItem() you can use them interchangeably.

Implementation

external Attr? setNamedItemNS(Attr attr);