The W3C DOM

Since much of your scripting now and in the future will deal with the W3C's version of DOM, we're going to look at it more closely. It introduces some new concepts into HTML that look like they belong in just the XML world. There's a reason for that, actually: HTML is being transformed into just another flavor of XML. In fact, XHTML is the first step of that process. Don't worry—this is a good thing that will make life easier for us later on.

HTML in the New DOM

If you want to use all of the features of the W3C's DOM, then you're going to have to change your HTML a little bit. Nothing drastic, so don't worry.

END TAGS AHOY

It's time to start adding end tags to almost everything, even HTML tags that have never needed end tags. For ...

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.