Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / getelementbyname-invalidation.html
bloba6239175a91ac8c5381f547fb5c0caa06602a05b
1 <html>
2 <body>
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>
6 <p></p>
7 <p></p>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
11 try {
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>");
23 } catch(ex) {
24 document.write(ex + "<br>FAILED");
26 </script>
27 </body>
28 </html>