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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.