AvailabilityDOM Level 2 Core Synopsisvoid setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException; Arguments
ThrowsThis method may throw a DOMException with the following code values:
DescriptionThis method is like setAttribute( ), except that the attribute to be created or set is specified by a namespace URI and a qualified name that consists of a namespace prefix, a colon, and a local name within the namespace. In addition to letting you change the value of an attribute, this method allows you to change the namespace prefix of an attribute. This method is useful only with XML documents that use namespaces. It may be unimplemented (i.e., throw a NOT_SUPPORTED_ERR) on browsers that do not support XML documents. See AlsoElement.setAttribute( ), Element.setAttributeNode( ) |