JavaScript - Tutorial - Objektreferenz - Der DocumentType-Objekttyp

Der DocumentType-Objekttyp ist vom Node-Objekttyp abgeleitet und ererbt dessen Attribute und Methoden.

Konstanten des Objekttyps DocumentType
vom Node-Objekttyp ererbte Konstanten:
ELEMENT_NODE, ATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, ENTITY_REFERENCE_NODE, ENTITY_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, DOCUMENT_FRAGMENT_NODE, NOTATION_NODE, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC


Attribute des Objekttyps DocumentType
vom Node-Objekttyp ererbte Attribute:
nodeName, nodeValue, nodeType, parentNode, childNodes, firstChild, lastChild, previousSibling, nextSibling, attributes, ownerDocument, namaspaceURI, prefix, localName, baseURI, textContent
Attribut Typ  Bedeutung
entities  object (NamedNodeMap), readonly  Gebilde-Objekte eines Dokuments
internalSubset  string, readonly  teilweise nicht vorhanden, abhängig vom HTML- oder XML-Prozessor
name  string, readonly  name des Documents
notations  object (NamedNodeMap), readonly  Notations-Objekte eines Dokuments
publicId  string, readonly  öffentliche ID
systemId  string, readonly  System-ID


Funktionen des Objekttyps DocumentType
vom Node-Objekttyp ererbte Funktionen:
insertBefore, replaceChild, removeChild, appendChild, hasChildNodes, cloneNode, normalize, isSupported, hasAttributes, compareDocumentPosition, isSameNode, lookupPrefix, isDefaultNamespace, lookupNamespaceURI, isEqualNode, getFeature, setUserData, getUserData


Autor: Ulrich Kritzner