The Document.createAttributeNS() method creates a new attribute node with the specified namespace URI and qualified name, and returns it.
Document.createAttributeNS()
MDN Reference
The
Document.createAttributeNS()method creates a new attribute node with the specified namespace URI and qualified name, and returns it.MDN Reference