O'Reilly logo

Practical Web Technologies by V. Lau, P. K. Yuen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11.4. Working with the DOM Core interfaces

11.4.1. The node interface

The node interface is the skeleton and primary data structure of the entire DOM Core. Beginning with just a single node, the whole document tree is clearly represented. For example, the firstChild, lastChild, nodeName, and childNodes objects are defined in the node interface. In fact, the node interface also contains a number of primary methods or functions such as insert, remove, replace, and append for you to manipulate a document tree.

The node interface is a big interface and if you ignore the declarations of the “NodeType,” “TreePosition,” and some other functions not frequently used, you will get a simplified version of the interface as listed in ex11-06.txt.

Listing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required