layout/tables/crashtests/371290.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <html class="reftest-wait">
michael@0 2 <head>
michael@0 3 <title>BC crash</title>
michael@0 4 <script>
michael@0 5 function doit() {
michael@0 6 var C = document.getElementById('C');
michael@0 7 var newNode = document.createElement('td');
michael@0 8 newNode.setAttribute('id', 'D');
michael@0 9 C.insertBefore(newNode, document.getElementById('B'));
michael@0 10 var D = document.getElementById('D');
michael@0 11 D.parentNode.removeChild(D);
michael@0 12 var A = document.getElementById('A');
michael@0 13 A.parentNode.removeChild(A);
michael@0 14 document.documentElement.removeAttribute("class");
michael@0 15 }
michael@0 16 </script>
michael@0 17 </head>
michael@0 18
michael@0 19
michael@0 20 <body onload="doit()">
michael@0 21 <table style="border-collapse: collapse">
michael@0 22 <tbody>
michael@0 23 <tr id="C">
michael@0 24 <th id="B"></th>
michael@0 25 </tr>
michael@0 26 <tr>
michael@0 27 <td id="A" colspan="2"></th>
michael@0 28 </tr>
michael@0 29 <tbody><tr><th></th></tr></tbody>
michael@0 30
michael@0 31 </table>
michael@0 32 </body>
michael@0 33 </html>

mercurial