Package | dom.core |
Class | public class DocumentType |
Inheritance | DocumentType Node Object |
Introduced in: | DOM 1 Core |
Modified in: | DOM 2 Core |
Note: DOM Level 3 doesn't support editing DocumentType nodes. DocumentType nodes are read-only.
Note (Mozilla): This interface is not fully supported in Mozilla at present, including for indicating internalSubset information which Gecko generally does otherwise support.
See also
Property | Defined By | ||
---|---|---|---|
DOM 1 Core attributes : NamedNodeMap [read-only]
Returns an unordered collection of Attr nodes. | Node | ||
Non-Standard baseName : DOMString [read-only]
Returns the base name for the name qualified with the namespace. | Node | ||
DOM 3 Core baseURI : DOMString [read-only]
The absolute base URI of this node or null if the implementation
wasn't able to obtain an absolute URI. | Node | ||
DOM 1 Core childNodes : NodeList [read-only]
Returns an ordered collection of node objects that are children of
the current element. | Node | ||
Non-Standard dataType : *
Specifies the data type for this node. | Node | ||
Non-Standard definition : Node [read-only]
Returns the definition of the node in the document type definition (DTD) or schema. | Node | ||
DOM 1 Core entities : NamedNodeMap [read-only]
A NamedNodeMap containing the general entities, both external and internal,
declared in the DTD. | DocumentType | ||
DOM 1 Core firstChild : Node [read-only]
Returns the node's first child in the tree, or null if the node is
childless. | Node | ||
DOM 2 Core internalSubset : DOMString [read-only]
The internal subset as a string, or null if there is none. | DocumentType | ||
DOM 1 Core lastChild : Node [read-only]
Returns the last child of a node. | Node | ||
DOM 2 Core localName : DOMString [read-only]
Returns the local part of the qualified name of this node. | Node | ||
DOM 1 Core name : DOMString [read-only]
The name of DTD; i.e., the name immediately following the DOCTYPE keyword. | DocumentType | ||
DOM 2 Core namespaceURI : DOMString [read-only]
The namespace URI of the node, or null if it is unspecified (read-only). | Node | ||
DOM 1 Core nextSibling : Node [read-only]
Returns the node immediately following the specified one in its
parent's childNodes list, or null if the specified node is the
last node in that list. | Node | ||
DOM 1 Core nodeName : DOMString [read-only]
Returns the name of the current node as a string. | Node | ||
Non-Standard nodePrincipal : nsIPrincipal [read-only]
Returns the nsIPrincipal object representing current security
context of the node. | Node | ||
DOM 1 Core nodeType : Number [read-only]
Returns an integer code representing the type of the node. | Node | ||
Non-Standard nodeTypedValue : *
Contains the node value expressed in its defined data type. | Node | ||
Non-Standard nodeTypeString : DOMString [read-only]
Returns the node type in string form. | Node | ||
DOM 1 Core nodeValue : DOMString
Returns or sets the value of the current node. | Node | ||
DOM 1 Core notations : NamedNodeMap [read-only]
A NamedNodeMap containing the notations declared in the DTD. | DocumentType | ||
DOM 1 Core ownerDocument : Document [read-only]
The Document object associated with this node. | Node | ||
DOM 1 Core parentNode : Node [read-only]
Returns the parent of the specified node in the DOM tree. | Node | ||
Non-Standard parsed : Boolean [read-only]
Indicates the parsed status of the node and child nodes. | Node | ||
DOM 2 Core prefix : DOMString
Returns the namespace prefix of the specified node, or null if no
prefix is specified. | Node | ||
DOM 1 Core previousSibling : Node [read-only]
Returns the node immediately preceding the specified one in its
parent's childNodes list, null if the specified node is the first
in that list. | Node | ||
DOM 2 Core publicId : DOMString [read-only]
The public identifier of the external subset. | DocumentType | ||
Non-Standard specified : Boolean [read-only]
Indicates whether the node (usually an attribute) is explicitly specified or derived
from a default value in the document type definition (DTD) or schema. | Node | ||
DOM 2 Core systemId : DOMString [read-only]
The system identifier of the external subset. | DocumentType | ||
Non-Standard text : DOMString
Represents the text content of the node or the concatenated text representing the node and its descendants. | Node | ||
DOM 3 Core textContent : DOMString
Gets or sets the text content of a node and its descendants. | Node | ||
Non-Standard xml : DOMString [read-only]
Contains the XML representation of the node and all its descendants. | Node |
Event | Summary | Defined By | ||
---|---|---|---|---|
A node has been added as a child of another node or, in case of Attr nodes, has been added to an Element. | DocumentType | |||
A node has been inserted into a document, either through direct insertion of the node or insertion of a subtree in which it is contained; Attr nodes are considered part of an Element's subtree. | DocumentType | |||
A node is being removed from its parent node or, in case of Attr nodes, removed from its ownerElement. | DocumentType | |||
A node is being removed from a document, either through direct removal of the node or removal of a subtree in which it is contained; Attr nodes are considered part of an Element's subtree. | DocumentType |
DOM 1 Core entities | property |
entities:NamedNodeMap
[read-only] Introduced in: | DOM 1 Core |
A NamedNodeMap containing the general entities, both external and internal, declared in the DTD. Parameter entities are not contained. Duplicates are discarded.
Internal (Parsed) Entities define entity references in order to replace certain strings by a replacement text. The content of the entity is given in the declaration.
External (Parsed) Entities refer to external storage objects.
Note: The DOM Level 2 does not support editing entities, therefore entities cannot be altered in any way.
public function get entities():NamedNodeMap
See also
<!DOCTYPE ex SYSTEM "ex.dtd" [ <!ENTITY bat "bat"> <!ENTITY bar "bar"> ]>
DOM 2 Core internalSubset | property |
internalSubset:DOMString
[read-only] Introduced in: | DOM 2 Core |
The internal subset as a string, or null if there is none. This is does not contain the delimiting square brackets.
Note: The actual content returned depends on how much information is available to the implementation. This may vary depending on various parameters, including the XML processor used to build the document.
public function get internalSubset():DOMString
See also
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" [ <!ATTLIST input validate CDATA #IMPLIED> <!ATTLIST input range CDATA #IMPLIED> ]> // internalSubset : <!ATTLIST input validate CDATA #IMPLIED><!ATTLIST input range CDATA #IMPLIED>
DOM 1 Core name | property |
name:DOMString
[read-only] Introduced in: | DOM 1 Core |
The name of DTD; i.e., the name immediately following the DOCTYPE keyword.
public function get name():DOMString
See also
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> // name : html
DOM 1 Core notations | property |
notations:NamedNodeMap
[read-only] Introduced in: | DOM 1 Core |
A NamedNodeMap containing the notations declared in the DTD. Duplicates are discarded. Every node in this map also implements the Notation interface.
Note: The DOM Level 2 does not support editing notations, therefore notations cannot be altered in any way.
public function get notations():NamedNodeMap
See also
<!DOCTYPE ex SYSTEM "ex.dtd" [ <!NOTATION GIF system "image/gif"> ]>
DOM 2 Core publicId | property |
publicId:DOMString
[read-only] Introduced in: | DOM 2 Core |
The public identifier of the external subset.
public function get publicId():DOMString
See also
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> // publicId : -//W3C//DTD XHTML 1.0 Transitional//EN
DOM 2 Core systemId | property |
systemId:DOMString
[read-only] Introduced in: | DOM 2 Core |
The system identifier of the external subset. This may be an absolute URI or not.
public function get systemId():DOMString
See also
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> // systemId : http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
DOMNodeInserted | Event |
dom.events.MutationEvent
DOMNodeInserted
A node has been added as a child of another node or, in case of Attr nodes, has been added to an Element. This event is dispatched after the insertion has taken place. The target node of this event is the node being inserted.
DOMNodeInsertedIntoDocument | Event |
dom.events.MutationEvent
DOMNodeInsertedIntoDocument
A node has been inserted into a document, either through direct insertion of the node or insertion of a subtree in which it is contained; Attr nodes are considered part of an Element's subtree. This event is dispatched after the insertion has taken place. The target node of this event is the node being inserted. If the node is being directly inserted, the event type DOMNodeInserted occurs before this event type.
DOMNodeRemoved | Event |
dom.events.MutationEvent
DOMNodeRemoved
A node is being removed from its parent node or, in case of Attr nodes, removed from its ownerElement. This event is dispatched before the removal takes place. The target node of this event is the node being removed.
DOMNodeRemovedFromDocument | Event |
dom.events.MutationEvent
DOMNodeRemovedFromDocument
A node is being removed from a document, either through direct removal of the node or removal of a subtree in which it is contained; Attr nodes are considered part of an Element's subtree. This event is dispatched before the removal takes place. The target node of this event type is the node being removed. If the node is being directly removed, the event type DOMNodeRemoved occurs before this event type.