org.w3c.dom.Element.setAttributeNodeNS
method

    public setAttributeNodeNS(newAttr as Attr) as Attr throws DOMException

Description

Adds or replaces a namespace-aware attribute node.

Parameters

Parameter | Description
--- | ---
`newAttr` | Attribute node.

Returns

Previous attribute node, or null.

Throws

- DOMException if the attribute cannot be attached.

Example

    old = element.setAttributeNodeNS(attr)