This figure provides a graphical representation of inheritance-type relationship between DOM types; methods defined on the supertype should be available on the subtype.
Description of the inheritance structure follows:
Attr, CharacterData, Document, DocumentFragment, DocumentType, Element, Entity, EntityReference, Notation, and ProcessingInstruction are all subtypes of Node
Text is a subtype of CharacterData
CDATASection and Comment are subtypes of Text