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> 5 if (window.layoutTestController) 6 layoutTestController.dumpAsText(); 7 8 var list = document.getElementsByName("anchor"); 9 var x = list.length 10 x = list[0]; 11 12 // Remove the child node of paragraph A. Use innerHTML to avoid getting a reference to the node being removed. 13 document.getElementById("a").innerHTML = ""; 14 15 // Now try the original list. 16 x = list.length; 17 x = list[0]; 18 </script> 19