Appendix C. W3C DOM Reference
Because JavaScript is primarily used to program the browser and add behavior to web pages, it's only natural to include a reference to the W3C DOM.
The following pages lists the objects made available by the W3C DOM.
DOM Core Objects
This section describes and lists objects defined by the DOM standards — starting with the lowest level of DOM objects. All objects are in alphabetical order.
Low-Level DOM Objects
The DOM specification describes the Node, NodeList, and NamedNodeMap objects. These are the lowest-level objects in the DOM, and are the primary building blocks of higher-level objects.
Node
Defined in DOM Level 1, the Node object is the primary datatype for the entire DOM. All objects in the DOM inherit from Node. There are 12 different types of Node objects; each type has an associated integer value. The following tables list the Node object's type values, properties, and methods.
Node Types
Type Name | Integer Value | Introduced | Associated Data Type |
|---|---|---|---|
| 1 | Level 1 |
|
| 2 | Level 1 |
|
| 3 | Level 1 |
|
| 4 | Level 1 |
|
| 5 | Level 1 |
|
| 6 | Level 1 |
|
| 7 | Level 1 |
|
| 8 | Level 1 |
|
| 9 | Level 1 |
|
| 10 | Level 1 |
|
| 11 | Level 1 |
|
| 12 | Level 1 |
|
Properties
Property Name | Description | Introduced |
|---|---|---|
| A |
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