Introduction

Document Object Model (DOM) scripting is often misrepresented as any sort of scripting on the Web, but pure DOM scripting includes only those features and methods incorporated into a W3C DOM specification—that means no proprietary browser features. In a perfect world, we could follow the standards, ignore proprietary features, and finish with an agnostic script that just works on any device. But it's not a perfect world—yet. As we all know, not all devices or browsers are W3C standards compliant, so where does that leave developers like us when we need to accommodate everyone, and how do we stay true to the W3C DOM?

When trying to answer those questions and deal with multiple browsers while maintaining proper DOM compliance, the idea ...

Get AdvancED DOM Scripting: Dynamic Web Design 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.