Chapter 6. Scripting with Mutable DOM Prototypes

Customization of the Document Object Model (DOM) is a powerful concept, especially when used with dynamic languages like JavaScript. Prototype and property modification can solve important compatibility and interoperability issues without requiring changes to existing code. While older IE releases do not support a mutable DOM, IE 8 has added mutable prototype support enabling these important scenarios. In this chapter, I will detail how you can apply these concepts to your projects and provide some examples you can reuse on your own web sites.

A Primer: Prototypes, Properties, and the DOM

JavaScript has many traits of an object-oriented programming (OOP) language; however, it lacks the traditional ...

Get Pro Internet Explorer 8 & 9 Development: Developing Powerful Applications for The Next Generation of IE 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.