W3C's Document Object Model (DOM) Specifications

This chapter provides an introduction of W3C's Document Object Model (DOM) Specifications. Topics include an overview of DOM specifications; Examples of DOM Level 0, 1, 2, and 3 functionalities; DOM levels supported by Web browsers; 'Node' and other DOM API interfaces; dump 'document' object with DOM API.


These sections are omitted from this Web preview version. To view the full content, see information on how to obtain the full version this book.

Overview of DOM Specifications

DOM Level 0 - Example

DOM Level 1 - Example

DOM Level 2 - Example

DOM Level 3 - Example

DOM Level Test - document.implementation.hasFeature

Inheritance vs. Flattened Views of the API

A Web Document as A Tree of Different Interfaces

A Web Document as A Tree of Nodes

Dump Document in a New Window - JavaScript Source

Dump Document in a New Window - Browser Result

Dump Document in a New Window - IE 6.0 Result


Takeaways:

Table of Contents

 About This Book

 Introduction to JavaScript

 ECMAScript Language Specification and JavaScript Dialects

 Data Types, Variables and Expressions

 Flow Control Statements

 Creating, Accessing, and Manipulating Arrays

 Defining and Calling Functions

 Web Browser Supporting JavaScript

 Server-Side and Client-Side Web Scripting

 Introduction to Objects

 Defining Your Own Object Types

 Inheritance of Properties and Methods through the Prototype Object Chain

 'jrunscript' - JavaScript Shell Command from JDK

 Using Functions as "Function" Objects

 Introduction to Built-in Object Types

W3C's Document Object Model (DOM) Specifications

 AJAX (Asynchronous JavaScript And XML)

 References

 Full Version in PDF/EPUB