A runtime exception but you should catch it
Error code gives more detailed information:
DOMException.INDEX_SIZE_ERRDOMException.DOMSTRING_SIZE_ERRStringDOMException.HIERARCHY_REQUEST_ERRDOMException.WRONG_DOCUMENT_ERRDOMException.INVALID_CHARACTER_ERRDOMException.NO_DATA_ALLOWED_ERRDOMException.NO_MODIFICATION_ALLOWED_ERRDOMException.NOT_FOUND_ERRDOMException.NOT_SUPPORTED_ERRDOMException.INUSE_ATTRIBUTE_ERRDOMException.INVALID_STATE_ERRDOMException.SYNTAX_ERRDOMException.INVALID_MODIFICATION_ERRDOMException.NAMESPACE_ERRDOMException.INVALID_ACCESS_ERRCurrent value accessible from the public code field