Platform Support
| IE | Mozilla | Netscape | Opera | Safari | Chrome | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome | ||
|---|---|---|---|---|---|---|---|---|---|
|
DocumentType Constructor() : DocumentType
Represents the <!DOCTYPE> of a document.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no | no | ||
DocumentType() : DocumentTypeRepresents the <!DOCTYPE> of a document. Returns
|
|||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome |
|---|---|---|---|---|---|---|---|
|
entities
: NamedNodeMap
List of entities defined in the DTD.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no | no |
|
|||||||
|
internalSubset
: String
Contents of the DTD subset
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no | no |
|
|||||||
|
name
: String
Name of the DTD.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no | no |
|
|||||||
|
notations
: NamedNodeMap
List of notations defined in this DTD
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no | no |
|
|||||||
|
publicId
: String
The public identifier of the external subset
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no | no |
|
|||||||
|
systemId
: String
The system identifier of the external subset
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | no | no |
|
|||||||
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