documentType object

Provides properties that describe the document type of a document object.

Document Object Model (DOM) Level 3 Core Specification, Section 1.5Internet Explorer 9

Members

The documentType object has these types of members:

Methods

The documentType object has these methods.

MethodDescription
appendChild

Appends an element as a child to the object.

cloneNode

Copies a reference to the object from the document hierarchy.

compareDocumentPosition

Compares the position of two nodes in a document.

insertBefore

Inserts an element into the document hierarchy as a child node of a parent object.

isDefaultNamespace

Indicates whether or not a namespace is the default namespace for a document.

isEqualNode

Determines if two nodes are equal.

isSameNode

Determines if two node references refer to the same node.

isSupported

Returns a value indicating whether or not the object supports a specific DOM standard.

lookupNamespaceURI

Gets the URI of the namespace associated with a namespace prefix, if any.

lookupPrefix

Gets the namespace prefix associated with a URI, if any.

removeChild

Removes a child node from the object.

removeNode

Removes the object from the document hierarchy.

replaceChild

Replaces an existing child element with a new child element.

replaceNode

Replaces the object with another element.

swapNode

Exchanges the location of two objects in the document hierarchy.

 

Properties

The documentType object has these properties.

PropertyDescription

entities

Returns a null value.

firstChild

Gets a reference to the first child in the childNodes collection of the object.

internalSubset

Returns a null value.

lastChild

Gets a reference to the last child in the childNodes collection of an object.

localName

Retrieves the local name of the fully qualified XML declaration for a node.

name

Gets the name of the root element of a document type.

namespaceURI

Retrieves the namespace URI of the fully qualified XML declaration for a node.

nextSibling

Retrieves a reference to the next child of the parent for the object.

nodeName

Gets the name of a particular type of node.

nodeType

Retrieves the type of the requested node.

nodeValue

Gets or sets the value of a node.

notations

Returns a null value.

ownerDocument

Retrieves the document object associated with the node.

parentNode

Retrieves the parent object in the document hierarchy.

prefix

Retrieves the local name of the fully qualified XML declaration for a node.

previousSibling

Gets a reference to the previous child of the parent for the object.

publicId

Gets the public identifier of a document type.

systemId

Gets the system identifier of a document type.

textContent

Sets or retrieves the text content of an object and any child objects.

 

Standards information

 

 

Show:
© 2014 Microsoft