10.6 Summary of the DOM Objects and Collections
As you've seen in the preceding sections, the objects and collections in the
W3C DOM give you flexibility in manipulating the elements of a web page. We've
shown how to access the objects in a page, how to access the objects in a
collection, and how to change element styles dynamically.
The W3C DOM allows you to access every element in an XHTML document. Each
element in a document is represented by a separate object. The diagram in Fig.
10.6 shows many of the important objects and collections provided by the W3C
10.7 provides a brief description of each object and collection in Fig.
W3C Document Object Model.
Objects and collections in the W3C Document Object Model.
For a complete reference on the W3C Document Object Model, see the DOM Level
3 recommendation from the W3C at http://www.w3.org/TR/DOM-Level-3-Core/.
The DOM Level 2 HTML Specification (the most recent HTML DOM standard),
available at http://www.w3.org/TR/DOM-Level-2-HTML/,
describes additional DOM functionality specific to HTML, such as objects for
various types of XHTML elements. Keep in mind that not all web browsers
implement all features included in the specification.
© Copyright Pearson Education. All rights