Internet Explorer 8 on Windows XP crashes on querySelectorAll?

Go to the IE8 crash page

In IE8, Microsoft Internet Explorer 8, a new and convenient method has been introduced by the name ‘querySelectorAll’ By using this method you can find DOM elements based on  CSS class names. Useful? Oh yeah, this could be very useful. But there seems to be an serious problem. Please take a look.

Browser crash
We found an possible problem by using some Javascript. It is possible to crash the browser by using querySelectorAll. We can do this with three lines of Javascript code.

We call the document.querySelectorAll. As result we get a so called static Node List. I have no idea what a static Node List is, but I guess it is a kind of object.
Or is it an array? For instance this static Node List has a length property. So it is some native thing. Half Array , half Object.

Now we try to do a little loop through the elements of this node list. That is all. The browser crashes instantly. Or to be more correct: the tab pane crashes. The browser doesn’t actually crash. This seems a serious error. I don’t know how serious. Is it only an annoying feature ore something more serious?

Example code

// Get the static Node List
var questions = document.querySelectorAll ( ".W4);

// Let's crash IE8
for (var el in questions)
	break;

We have an working example file. Please note that your IE8 browser could crash when you visit this example page. So be careful please.
Go to the IE8 crash page

We tested this issue on three different machines, all Windows XP and IE8.  Please test this on your machine and let us know what you find. This code doesn’t do any harm as far as we know, it only crashes the browser.

James Hopkins of http://idreamincode.co.uk/ has confirmed this bug and has filed it on the Microsoft feedback pages  right here.

Be sure to run IE8 on Windows XP. That is the fatal combination. IE8 on Windows Vista won’t crash.


COMMENTS / 4 COMMENTS

[…] Donc en fait, si je me fatigue, c’est uniquement pour Internet Explorer… Mais IE8 doit également supporter querySelector, bien que… […]

Sélecteurs de classe en javascript | Les coulisses de SkyNewt added these pithy words on May 07 10 at 9:10 pm

I tried the IE8 crash page with IE 8 final release (build 18702) under XP Pro SP3 and I did not crash.

2 important things must be added.

First, that IE8 crash page is not a reduced testcase.

Second, crash often occurs because of buggy add-ons. And that IE 8 crash page requires add-ons. I tried that IE 8 crash page with some add-ons enabled and with all add-ons disabled and I did not crash in both modes.

You can try it too yourself:

Start/All Programs/Accessories/System Tools/Internet Explorer (No Add-ons)

regards, Gérard

Gérard Talbot added these pithy words on Sep 28 09 at 12:54 am

@Gérard, Of cause I’ve tried without add-ons. This makes no difference at all.

Jay

admin added these pithy words on Sep 28 09 at 7:58 pm

It crashes in an XP VM for me and also on our clients’ XP machines.

Anyone know of a fix?

Anthony added these pithy words on Mar 16 12 at 12:53 pm

SPEAK / ADD YOUR COMMENT
Comments are moderated.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Return to Top

Internet Explorer 8 crashes on querySelectorAll?

FRESH / LATEST POSTS