Platform Support
| IE | Mozilla | Netscape | Opera | Safari | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
|---|---|---|---|---|---|---|---|---|
|
DocumentType Constructor() : DocumentType
Represents the <!DOCTYPE> of a document.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no | ||
DocumentType() : DocumentTypeRepresents the <!DOCTYPE> of a document. Returns
|
||||||||
Inherited Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
attributes
: NamedNodeMap
Attributes for an element node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
childNodes
: NodeList
Child nodes of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
firstChild
: Node
First child node of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
lastChild
: Node
Last child node of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
localName
: String
Local part of an element or attribute name if it the node was defined with an XML Namespace.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
namespaceURI
: String
URI of the namespace for an element or attribute node if the node was defined with an XML Namespace.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
nextSibling
: Node
Sibling node immediately after the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
nodeName
: String
Name of the node. Same as tag name for element nodes.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
nodeType
: Number
Type of node. See Remarks for valid values.
|
Show Details | 5.5+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
nodeValue
: String
Value of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
ownerDocument
: Document
Document object that contains this node.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
parentNode
: Node
Parent node of the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
prefix
: String
Namespace prefix for an element or attribute node if the node was defined with an XML Namespace.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
previousSibling
: Node
Sibling node immediately before the current node.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
entities
: NamedNodeMap
List of entities defined in the DTD.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no |
|
||||||
|
internalSubset
: String
Contents of the DTD subset
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no |
|
||||||
|
name
: String
Name of the DTD.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no |
|
||||||
|
notations
: NamedNodeMap
List of notations defined in this DTD
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no |
|
||||||
|
publicId
: String
The public identifier of the external subset
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no |
|
||||||
|
systemId
: String
The system identifier of the external subset
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no |
|
||||||
Inherited Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Safari | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
hasAttributes() : Boolean
Returns true if the node is an element node with attributes.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.3+ | ||||||||
|
Returns
|
||||||||||||||
|
hasChildNodes() : Boolean
Returns true if the node has child nodes.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | ||||||||
|
Returns
|
||||||||||||||
|
isSupported(String feature, [String version]) : Boolean
Returns true if the specified feature and version are supported.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | ||||||||
|
Parameters
Returns
|
||||||||||||||
|
normalize() : void
Merges text nodes adjacent to the element to create a normalized DOM.
|
Show Details | N/A | 1.0+ | 6.0+ | 7.0+ | 1.0+ | ||||||||
Returns
|
||||||||||||||
Remarks
This represents the Document. If a
document has a
Throughout the rest of the documentation in this object, the following sample DTD will be used to illustrate how the various properties work.
]>
]]>
References
Availability
HTML DOM Level 2|W3C
