Implementing DOM
Having learned the interfaces, attributes, and methods of DOM, you'll now learn how they can be put to work. To implement them, you obviously need an application that supports DOM. The examples in the previous portion of the book have used one implementation: that of the IE5 DSO, which relies on the Microsoft DOM engine.
The Microsoft DOM Engine
The Microsoft implementation is a fairly accurate one. It has only one glaring fault. It uses camelback notation—rather than lowercase—for the doctype attribute of the DocumentType interface. The DocumentType interface is also meant to have no children. However, the MS engine will allow you use the childNodes() method to build a nodeList of the entities and notations in the ...
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