Adds a new attribute node. If an attribute with that name (nodeName) is
already present in the element, it is replaced by the new one. Replacing an
attribute node by itself has no effect.
To add a new attribute node with a qualified name and namespace URI, use
the setAttributeNodeNS method.
Adds a new attribute node. If an attribute with that name (nodeName) is already present in the element, it is replaced by the new one. Replacing an attribute node by itself has no effect. To add a new attribute node with a qualified name and namespace URI, use the setAttributeNodeNS method.