DocumentType in DOM Level 2 Core

The DocumentType interface represents general entities and notations declared in the document type definition

Inherits from:

For official information please see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-412266927.

Instance Properties

name type description
nodeName String (read only) [from Node]
nodeValue String [from Node]
nodeType Number (read only) [from Node]
parentNode Node (read only) [from Node]
childNodes NodeList (read only) [from Node]
firstChild Node (read only) [from Node]
lastChild Node (read only) [from Node]
previousSibling Node (read only) [from Node]
nextSibling Node (read only) [from Node]
attributes NamedNodeMap (read only) [from Node]
ownerDocument Document (read only) [from Node]
namespaceURI String (read only) [from Node]
prefix String [from Node]
localName String (read only) [from Node]
name String (read only)
entities NamedNodeMap (read only)
notations NamedNodeMap (read only)
publicId String (read only)
systemId String (read only)
internalSubset String (read only)

Instance Methods

name returns description
insertBefore() Node [from Node]
replaceChild() Node [from Node]
removeChild() Node [from Node]
appendChild() Node [from Node]
cloneNode() Node Return a new copy of the node. [from Node]
isSupported() Boolean [from Node]
hasChildNodes() Boolean [from Node]
normalize() (none) [from Node]
hasAttributes() Boolean [from Node]

Description

 

Each Document has a doctype attribute whose value is either null or a DocumentType object. The DocumentType interface in the DOM Core provides an interface to the list of entities that are defined for the document, and little else because the effect of namespaces and the various XML schema efforts on DTD representation are not clearly understood as of this writing.

The DOM Level 2 doesn't support editing DocumentType nodes.

Properties that are a DocumentType

name object description
doctype Document (read only)

Methods that return a DocumentType

name of object description
createDocumentType() DOMImplementation

Arguments that are a DocumentType

name in method of object description
doctype createDocument() DOMImplementation