DocumentType Interface
The DocumentType interface in the DOM level 1 Core provides an interface to the list of Entities and Notations that are defined for the document.
IDL Definition
interface DocumentType : Node {
readonly attribute DOMString name;
readonly attribute NamedNodeMap entities;
readonly attribute NamedNodeMap notations;
};
Semantic Requirements
Attributes
- The name attribute contains the name of the DTD.
- The entities attribute contains a NamedNodeMap containing the general entities both internal and externals.
- Duplicate entities are discarded.
- Every node in the map contained in the entities attribute implements the Entity interface.
- The notations attribute contains a NamedNodeMap containing the notations declared in the DTD.
- Every node in the map contained in the notations attribute implements the Notation interface.
If you have comments or suggestions, email me at mbrady@nist.gov