5725058-crash-scenario-3.html revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1<p>Test for (rdar://problem/5725058). If you see this text, then all is well and no crash has occurred.</p> 2 3<p id="a"><a name="anchor">paragraph a</a></p> 4<script> 5if (window.layoutTestController) 6 layoutTestController.dumpAsText(); 7 8var list = document.getElementsByName("anchor"); 9var x = list.length 10x = list[0]; 11 12// Remove the child node of paragraph A. Use innerHTML to avoid getting a reference to the node being removed. 13document.getElementById("a").innerHTML = ""; 14 15// Now try the original list. 16x = list.length; 17x = list[0]; 18</script> 19