Perfection Kills

by kangax

Exploring Javascript by example

Archives Posts

Misbehaving IE8

January 29th, 2009 by kangax

When testing IE8 Beta 2 a couple of months ago, I noticed how one innocent line would bring poor pal to its knees:


Element.prototype.cloneNode.call();

Go ahead, try it out. It crashes my browser. Does it crash yours? A few days ago, Release Candidate 1 came out. The “magic” expression still crashes my browser… This doesn’t apply to cloneNode only. Most if not all of the Element.prototype methods (as well as some others) fail in the very same way:


Element.prototype.appendChild.call();
Element.prototype.hasChildNodes.call();
document.querySelector.call();

I tried submitting a bug to IE team few times but only kept getting errors in bug tracker. Here’s hoping to a more stable RC2!

Filed under Uncategorized having 6 Comments »

« Previous Entries