| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <script> | 6 <script> |
| 7 description('Test that a live list is updated after the child of an HTMLOutputEl
ement was removed.'); | 7 description('Test that a live list is updated after the child of an HTMLOutputEl
ement was removed.'); |
| 8 </script> | 8 </script> |
| 9 <output id="parentOutput"><span class="inner" id="first"></span><span class="inn
er" id="second"></span></output> | 9 <output id="parentOutput"><span class="inner" id="first"></span><span class="inn
er" id="second"></span></output> |
| 10 <script> | 10 <script> |
| 11 var list = document.getElementsByClassName("inner"); | 11 var list = document.getElementsByClassName("inner"); |
| 12 debug("The number of spans before removal is " + list.length); | 12 debug("The number of spans before removal is " + list.length); |
| 13 var beforeLength = list.length; | 13 var beforeLength = list.length; |
| 14 document.getElementById("parentOutput").removeChild(document.getElementById(
"first")); | 14 document.getElementById("parentOutput").removeChild(document.getElementById(
"first")); |
| 15 debug("The number of spans after removal is " + list.length); | 15 debug("The number of spans after removal is " + list.length); |
| 16 shouldBeTrue('list.length == beforeLength - 1'); | 16 shouldBeTrue('list.length == beforeLength - 1'); |
| 17 </script> | 17 </script> |
| 18 <script src="../../js/resources/js-test-post.js"></script> | |
| 19 </body> | 18 </body> |
| 20 </html> | 19 </html> |
| OLD | NEW |