Click the button to add a "hasimage" class to the outer div, which should activate the following rule, to apply a background-image to the inner DIV. Instead IE8 crashes.

    .hasimage .inner {
        background-image:url('http://yui.yahooapis.com/2.6.0/build/assets/skins/sam/sprite.png');
    }

It crashes using both element.className = 'hasimage' and element.setAttribute("class", "hasimage")

If the "inner" class is assigned a background-color, the bug is not seen.

If the background image is applied to the "hasimage" class, instead of the "inner" class, the bug is not seen.

IE8 in IE7 Compatibility mode works correctly.

Should have background image when the button is clicked
Other Content