setAttributeNS
Description
The setAttributeNS of Element for JS sets the value of element’s attribute whose namespace is namespace and local name is localName to value.
Syntax
element.setAttributeNS(namespace, localName, value)
Parameters
namespace
A null or a non-empty string.
localName
A local name.
value
A string.