3.org/2001/xml-events,
DOMElementNameChanged
} or {
http://www.w3.org/2001/xml-events
,
DOMAttributeNameChanged
} is fired.
@param n The node to rename.
@param namespaceURI The new namespace URI.
@param qualifiedName The new qualified name.
@return The renamed node. This is either the specified node or the new node that was created to replace the specified node.
@exception DOMException NOT_SUPPORTED_ERR: Raised when the type of the specified node is neither
ELEMENT_NODE
nor
ATTRIBUTE_NODE
, or if the implementation does not support the renaming of the document element.
WRONG_DOCUMENT_ERR: Raised when the specified node was created from a different document than this document.
NAMESPACE_ERR: Raised if the
qualifiedName
is a malformed qualified name, if the
qualifiedName
has a prefix and the
namespaceURI
is
null
, or if the
qualifiedName
has a prefix that is "xml" and the
namespaceURI
is different from "
http://www.w3.org/XML/1998/namespace" [
XML Namespaces] . Also raised, when the node being renamed is an attribute, if the
qualifiedName
, or its prefix, is "xmlns" and the
namespaceURI
is different from "
http://www.w3.org/2000/xmlns/".
@since DOM Level 3