removeAttributeNS method
Removes an attribute by local name and namespace URI. If the removed attribute has a default value it is immediately replaced. The replacing attribute has the same namespace URI and local name, as well as the original prefix.
HTML-only DOM implementations do not need to implement this method.
removeAttributeNS(namespaceURI, localName )
Parameters
String namespaceURI
The namespace URI of the attribute to remove.
String localName
The local name of the attribute to remove.
Returns
void
Throws
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
这对您有帮助吗?