DOM Interfaces

Let’s examine in more detail the interfaces in Figure 16.1.

The Node Interface

As you saw in Figure 16.1, many DOM nodes implement the Node interface. They might also have other properties and methods in addition to those that the Node interface provides.

These DOM interfaces are said to extend the Node interface. Figure 16.2 shows the interfaces in DOM Level 2 Core that extend the Node interface.

Figure 16.2. The DOM Level 2 interfaces that extend the Node interface.

In general, the names of the node types that inherit from the Node interface can be readily understood from their names. The DocumentType interface, for example, ...

Get Sams Teach Yourself XML in 10 Minutes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.