layout/tables/crashtests/339315-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
michael@0 2 <html>
michael@0 3
michael@0 4 <head>
michael@0 5 <script>
michael@0 6
michael@0 7 function boom() {
michael@0 8 var table = document.getElementById("table");
michael@0 9
michael@0 10 var doomed = document.getElementById("doomed");
michael@0 11 doomed.parentNode.removeChild(doomed);
michael@0 12
michael@0 13 var colgroup1 = document.createElement("colgroup");
michael@0 14 table.appendChild(colgroup1);
michael@0 15
michael@0 16 var thead = document.createElement("thead");
michael@0 17 var tr = document.createElement("tr");
michael@0 18 var td = document.createElement("td");
michael@0 19 td.setAttribute("colspan", 0);
michael@0 20 tr.appendChild(td);
michael@0 21 thead.appendChild(tr);
michael@0 22 table.insertBefore(thead, colgroup1);
michael@0 23
michael@0 24 colgroup1.parentNode.removeChild(colgroup1);
michael@0 25
michael@0 26 var colgroup2 = document.createElement("colgroup");
michael@0 27 table.appendChild(colgroup2);
michael@0 28 }
michael@0 29
michael@0 30 </script>
michael@0 31 </head>
michael@0 32
michael@0 33 <body onload="boom();">
michael@0 34
michael@0 35 <table id="table"><tbody><tr id="doomed"><td>x</tr></tbody></table>
michael@0 36
michael@0 37 </body>
michael@0 38 </html>

mercurial