DOM Object:  DOMException

Properties/Methods

Functional Description

Data

Test Case

INDEX_SIZE_ERR  = 1  If index or size is negative or greater than the allowed value characterData.substringData()  cdex001.html
characterData.insertData()  cdex002.html
characterData.deleteData()  cdex003.html
characterData.replaceData()  cdex004.html
text.splitText()  cdex005.html
DOMSTRING_SIZE_ERR  = 2  If the specified range of text does not fit into a DOMString node.nodeValue  cdex006.html
characterData.data  cdex007.html
characterData.substringData()  cdex008.html
HIERARCHY_REQUEST_ERR  = 3  If any node is inserted somewhere it doesn't belong node.insertBefore()  cdex009.html
node.replaceChild()  cdex010.html
node.appendChild()  cdex011.html
WRONG_DOCUMENT_ERR  = 4  If a node is used in a different document than the one that created it (that doesn't support it) node.insertBefore()  cdex012.html
node.replaceChild()  cdex013.html
node.appendChild()  cdex014.html
namedNodeMap.setNamedItem()  cdex015.html
element.setAttributeNode()  cdex016.html
INVALID_CHARACTER_ERR  = 5  If an invalid character is is specified, such as in a name document.createElement()  cdex017.html
document.createProcessingInstruction()  cdex018.html
document.createAttribute()  cdex019.html
document.createEntityReference()  cdex020.html
element.setAttribute()  cdex021.html
NO_DATA_ALLOWED_ERR  = 6  If data is specified for a node which does not support data Currently there are no objects in DOM Level 1 which throw this exception.
NO_MODIFICATION_ALLOWED_ERR  = 7  If an attempt is made to modify an object where modifications are not allowed node.nodeValue  cdex022.html
node.insertBefore()  cdex023.html
node.replaceChild()  cdex024.html
node.removeChild()  cdex025.html
node.appendChild()  cdex026.html
namedNodeMap.setNamedItem()  cdex027.html
characterData.data  cdex028.html
characterData.appendData()  cdex029.html
characterData.insertData()  cdex030.html
characterData.deleteData()  cdex031.html
characterData.replaceData()  cdex032.html
element.setAttribute()  cdex033.html
element.removeAttribute()  cdex034.html
element.setAttributeNode()  cdex035.html
element.removeAttributeNode()  cdex036.html
text.splitText()  cdex037.html
processingInstruction.data  cdex038.html
NOT_FOUND_ERR  = 8  If an attempt was made to reference a node in a context where it does not exist node.nodeValue  cdex039.html
node.insertBefore()  cdex040.html
node.replaceChild()  cdex041.html
node.removeChild()  cdex042.html
node.appendChild()  cdex043.html
namedNodeMap.setNamedItem()  cdex044.html
element.removeAttributeNode()  cdex045.html
NOT_SUPPORTED_ERR  = 9  If the implementation does not support the type of object requested document.createCDATASection()  cdex046.html
document.createProcessingInstruction()  cdex047.html
document.createEntityReference()  cdex048.html
INUSE_ATTRIBUTE_ERR  = 10  If an attempt is made to add an attribute that is already in use elsewhere namedNodeMap.setNamedItem()   cdex049.html
element.setAttributeNode()  cdex050.html