|
setAttributeNS(namespaceURI, qualifiedName, value)
|
|
|
Parameters
|
String namespaceURI
The namespace URI of the attribute to create or alter.
String qualifiedName
The qualified name of the attribute to create or alter.
String value
The value to set in string form.
|
|
Returns
|
void
|
|
Throws
|
DOMException
INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null, if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from " http://www.w3.org/XML/1998/namespace", or if the qualifiedName is "xmlns" and the namespaceURI is different from " http://www.w3.org/2000/xmlns/".
|