<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
gc = window.gc || function()
{
if (window.GCController)
return GCController.collect();
for (var i = 0; i < 10000; ++i)
var s = new String("AAAA");
}
window.onload = function()
{
object = document.createElement("object");
object.innerHTML = "<embed width=\"2\"/><element id=\"foo\"/>";
embed = object.firstChild;
embed.setAttribute("type", "image/png");
attr = document.createAttribute("width");
object.setAttributeNode(attr);
document.body.appendChild(object);
object = attr = null;
gc();
setTimeout(finishTest, 0);
}
finishTest = function()
{
document.getElementById("foo");
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</head>
<body>PASS</body>
</html>