blob: 2ad3e2dccf29a766e62139ccc6c6ef6212a394f0 [file] [log] [blame]
<p>Test for (rdar://problem/5725058). If you see this text, then all is well and no crash has occurred.</p>
<p id="a"><a name="anchor">paragraph a</a></p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var list = document.getElementsByName("anchor");
var x = list.length
x = list[0];
// Remove the child node of paragraph A. Use innerHTML to avoid getting a reference to the node being removed.
document.getElementById("a").innerHTML = "";
// Now try the original list.
x = list.length;
x = list[0];
</script>