blob: 736c78c20fa9541775c1dafa19f5888d276bdf08 [file] [log] [blame]
<p>This test passes if it does not crash.</p>
<div id="test1"></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var elem = document.getElementById("test1");
function go()
{
var str = "c";
for (var i = 0; i < 0x10000; i++)
var b = str + str;
}
function handler()
{
elem.removeAttribute("b");
go();
}
elem.setAttribute("b", "a");
try {
elem.attributes[0].appendChild(document.createTextNode("hi"));
} catch(e) {
}
elem.attributes[0].addEventListener("DOMSubtreeModified", handler, false);
elem.normalize();
</script>