Node and Other Generic Interfaces
The Node interface is the DOM Core class hierarchy’s root. Though never
instantiated directly, it is the root interface of all specific
interfaces, and you can use it to extract information from any object
within a DOM document tree without knowing its actual type. It is
possible to access a document’s complete structure and content using
only the methods and properties exposed by the Node interface. As shown in Table 19-1, this interface
contains information about the type, location, name, and value of the
corresponding underlying document data.
Name | Type | Read-only | 2.0 | 3.0 |
Attributes | ||||
attributes | NamedNodeMap | |||
baseURI | DOMString | |||
childNodes | NodeList | |||
firstChild | Node | |||
lastChild | Node | |||
localName | DOMString | |||
namespaceURI | DOMString | |||
nextSibling |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access