3 <span>fix for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=15274">bug
15274</a></span><br>
4 <div name=
"my_a">div
1</div>
5 <div name=
"my_a">div
2</div>
10 testRunner
.dumpAsText();
12 var divs
= document
.getElementsByName("my_a");
13 divs
[0].parentNode
.removeChild(divs
[0]);
14 document
.write("Should be 1: " + divs
.length
+ "<br>");
15 divs
[0].parentNode
.removeChild(divs
[0]);
16 document
.write("Should be 0: " + divs
.length
+ "<br>");
18 var divs
= document
.getElementsByTagName("p");
19 divs
[0].parentNode
.removeChild(divs
[0]);
20 document
.write("Should be 1: " + divs
.length
+ "<br>");
21 divs
[0].parentNode
.removeChild(divs
[0]);
22 document
.write("Should be 0: " + divs
.length
+ "<br>");
24 document
.write(ex
+ "<br>FAILED");