GNOME Bugzilla – Bug 703070
Handle DOMException from spec
Last modified: 2016-09-26 14:42:05 UTC
Here is a condensed list of all the DOMExceptions that the spec[0] defines. (The descriptions are often truncated, kept only to give an idea of what each are for.) Generated with the following command: grep -P -e "(<dt><b>(Exception|Interface) <i>|class=.(method|attribute).name.|_ERR: )" core.html | \ sed -r -e 's,<dt><b>(Interface|Exception) <i><a [^>]*>([^<]*)</a></i></b>.*</dt>,\1 \2,g' | \ sed -r -e 's,<dt><code class=.(attribute|method).name.><a[^>]*>([^<]*)</a></code>.*</dt>, \2,g' | \ sed -r -e 's,\.<p>,.\n<p>,g' | \ sed -r -e 's,<p>([^:]*_ERR:.*), \1,g' | \ sed -r -e 's,</?(code|td|tr|a|a [^>]*)>,,g' And then cleaned up a little. 0. http://www.w3.org/TR/DOM-Level-3-Core/core.html Interface DOMImplementation createDocument INVALID_CHARACTER_ERR: Raised if the specified qualified name is not an XML name according to [<cite>XML 1.0</cite>]. NAMESPACE_ERR: Raised if the qualifiedName is provided, since namespaces were defined by XML. WRONG_DOCUMENT_ERR: Raised if doctype has already implementation. NOT_SUPPORTED_ERR: May be raised if the implementation does createDocumentType INVALID_CHARACTER_ERR: Raised if the specified qualified name is not an XML name according to [<cite>XML 1.0</cite>]. NAMESPACE_ERR: Raised if the qualifiedName is malformed. NOT_SUPPORTED_ERR: May be raised if the implementation does Interface Document xmlStandalone NOT_SUPPORTED_ERR: Raised if this document does not support the xmlVersion NOT_SUPPORTED_ERR: Raised if the version is set to a value adoptNode NOT_SUPPORTED_ERR: Raised if the source node is of type DOCUMENT, DOCUMENT_TYPE. NO_MODIFICATION_ALLOWED_ERR: Raised when the source node is createAttribute INVALID_CHARACTER_ERR: Raised if the specified name is not createAttributeNS INVALID_CHARACTER_ERR: Raised if the specified qualifiedName specified in the Document.xmlVersion attribute. NAMESPACE_ERR: Raised if the qualifiedName is qualifiedName nor its prefix is "xmlns". NOT_SUPPORTED_ERR: Always thrown if the current document does not createCDATASection NOT_SUPPORTED_ERR: Raised if this document is an HTML createElement INVALID_CHARACTER_ERR: Raised if the specified name is not createElementNS INVALID_CHARACTER_ERR: Raised if the specified qualifiedName specified in the Document.xmlVersion attribute. NAMESPACE_ERR: Raised if the qualifiedName is qualifiedName nor its prefix is "xmlns". NOT_SUPPORTED_ERR: Always thrown if the current document does not createEntityReference INVALID_CHARACTER_ERR: Raised if the specified name is not specified in the Document.xmlVersion attribute. NOT_SUPPORTED_ERR: Raised if this document is an HTML createProcessingInstruction INVALID_CHARACTER_ERR: Raised if the specified target is specified in the Document.xmlVersion attribute. NOT_SUPPORTED_ERR: Raised if this document is an HTML importNode NOT_SUPPORTED_ERR: Raised if the type of node being imported is not supported. INVALID_CHARACTER_ERR: Raised if one of the imported names is renameNode NOT_SUPPORTED_ERR: Raised when the type of the specified node is not support the renaming of the document element. INVALID_CHARACTER_ERR: Raised if the new qualified name is not specified in the Document.xmlVersion attribute. 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 Interface Node nodeValue NO_MODIFICATION_ALLOWED_ERR: Raised when the node is DOMSTRING_SIZE_ERR: Raised when it would return more characters prefix INVALID_CHARACTER_ERR: Raised if the specified specified in the Document.xmlVersion attribute. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NAMESPACE_ERR: Raised if the specified textContent NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. DOMSTRING_SIZE_ERR: Raised when it would return more characters appendChild HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does Element node. WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if the previous parent of the node being inserted is readonly. NOT_SUPPORTED_ERR: if the newChild node is a compareDocumentPosition NOT_SUPPORTED_ERR: when the compared nodes are from different insertBefore HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does Element node. WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if the parent of the node being inserted is readonly. NOT_FOUND_ERR: Raised if refChild is not a child of this node. NOT_SUPPORTED_ERR: if this node is of type Document, removeChild NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if oldChild is not a child of this node. NOT_SUPPORTED_ERR: if this node is of type Document, replaceChild HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does Element on the Document node. WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the parent of the new node is readonly. NOT_FOUND_ERR: Raised if oldChild is not a child of this node. NOT_SUPPORTED_ERR: if this node is of type Document, Interface NamedNodeMap getNamedItemNS NOT_SUPPORTED_ERR: May be raised if the implementation does removeNamedItem NOT_FOUND_ERR: Raised if there is no node named name in this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. removeNamedItemNS NOT_FOUND_ERR: Raised if there is no node with the specified map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. NOT_SUPPORTED_ERR: May be raised if the implementation does setNamedItem WRONG_DOCUMENT_ERR: Raised if arg was created from a different document than the one that created this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. INUSE_ATTRIBUTE_ERR: Raised if arg is an Attr nodes to re-use them in other elements. HIERARCHY_REQUEST_ERR: Raised if an attempt is made to add a node setNamedItemNS WRONG_DOCUMENT_ERR: Raised if arg was created from a different document than the one that created this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. INUSE_ATTRIBUTE_ERR: Raised if arg is an Attr nodes to re-use them in other elements. HIERARCHY_REQUEST_ERR: Raised if an attempt is made to add a node Entities. NOT_SUPPORTED_ERR: May be raised if the implementation does Interface CharacterData data NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. DOMSTRING_SIZE_ERR: Raised when it would return more characters appendData NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. deleteData INDEX_SIZE_ERR: Raised if the specified offset is negative. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. insertData INDEX_SIZE_ERR: Raised if the specified offset is data. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. replaceData INDEX_SIZE_ERR: Raised if the specified offset is negative. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. substringData INDEX_SIZE_ERR: Raised if the specified offset is negative. DOMSTRING_SIZE_ERR: Raised if the specified range of text does not Interface Attr value NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. Interface Element getAttributeNS NOT_SUPPORTED_ERR: May be raised if the implementation does getAttributeNodeNS NOT_SUPPORTED_ERR: May be raised if the implementation does getElementsByTagNameNS NOT_SUPPORTED_ERR: May be raised if the implementation does hasAttributeNS NOT_SUPPORTED_ERR: May be raised if the implementation does removeAttribute NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. removeAttributeNS NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_SUPPORTED_ERR: May be raised if the implementation does removeAttributeNode NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if oldAttr is not an attribute setAttribute INVALID_CHARACTER_ERR: Raised if the specified name is not specified in the Document.xmlVersion attribute. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. setAttributeNS INVALID_CHARACTER_ERR: Raised if the specified qualified name specified in the Document.xmlVersion attribute. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NAMESPACE_ERR: Raised if the qualifiedName is qualifiedName nor its prefix is "xmlns". NOT_SUPPORTED_ERR: May be raised if the implementation does setAttributeNode WRONG_DOCUMENT_ERR: Raised if newAttr was created element. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an setAttributeNodeNS WRONG_DOCUMENT_ERR: Raised if newAttr was created element. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an other elements. NOT_SUPPORTED_ERR: May be raised if the implementation does setIdAttribute NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if the specified node is not an attribute setIdAttributeNS NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if the specified node is not an attribute setIdAttributeNode NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. NOT_FOUND_ERR: Raised if the specified node is not an attribute Interface Text replaceWholeText NO_MODIFICATION_ALLOWED_ERR: Raised if one of the splitText INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. Interface DOMConfiguration getParameter NOT_FOUND_ERR: Raised when the parameter name is not setParameter NOT_FOUND_ERR: Raised when the parameter name is not NOT_SUPPORTED_ERR: Raised when the parameter name is TYPE_MISMATCH_ERR: Raised if the value type for this Interface ProcessingInstruction data NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.