Microsoft has released a testdrive version of IE9 that includes support for:
- addEventListener()
- CSS3 Selectors
- CSS border-radius style for rounded corners
- SVG (no word on <canvas>, as far as I know, however)
Items 2, 3 & 4 are probably bigger news than item 1, but IE's lack of support for addEventListener() has always really irritated me. Finally, more than a decade after it was standardized, IE will support it. That means that by 2015 we can stop writing code that checks for addEventListener() and falls back on attachEvent().




Hi David:
I purchased your JS 5th Edition, and am anxiously awaiting the 6th Edition in august.
In the meantime, I'm struggling with handler.js in Chapter 17.
I'm including the handler.js in one of my apps, but cannot find an example of its usage ?
I tried to use the following construction:
Handler.add("hole09","click","tester") ;
as a test of of the handler.js on my IE7 system.
I got the following error in your handler.js code:
"Object doesn't support this property or method"
on the following line(s)
// Now register that nested function as our event handler.
element.attachEvent("on" + eventType, wrappedHandler);
I hope you can provide a real example or two of using your handler.js
Thanks !
-Mel Smith