setNamedItem method

Attr? setNamedItem(
  1. Attr attr
)

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

Implementation

external Attr? setNamedItem(Attr attr);