Chapter 9. There's Something About DOM

IN THIS CHAPTER

  • The Beginnings of DOM

  • About Document Objects

  • The Flavors of DOM

  • The W3C DOM

Every JavaScript programmer out there (you too) has been forced to deal with the multiple DOMs in the various browsers. For example, IE sometimes requires the “style” property, Netscape 6 is happy only when getElementById is used, and Netscape 4 still needs to see document.layers before it gets off its duff and does anything. This mess doesn't have anything to do with JavaScript—it has everything to do with the different browsers and how they see the world of Web pages. It's just that JavaScript has to deal with the mess.

Get Advanced JavaScript™: Insights and Innovative Techniques 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.