layout/reftests/table-dom/insertColgroupAndRowgroup.html

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:74c5943f2f75
1 <html class="reftest-wait">
2 <head>
3
4 <style>
5 colgroup#s { width: 200px; }
6 </style>
7
8 <script>
9 function boom()
10 {
11 document.body.offsetHeight;
12
13 var last = document.getElementById("last");
14 var parent = last.parentNode;
15
16 var colgroup = document.createElement("colgroup");
17 colgroup.setAttribute("id", "s");
18 parent.insertBefore(colgroup, last);
19
20 var newtbody = document.createElement("tbody");
21 var newrow = document.createElement("tr");
22 var newcell = document.createElement("td");
23 newcell.appendChild(document.createTextNode("cell 1,1"));
24 newrow.appendChild(newcell);
25 newcell = document.createElement("td");
26 newcell.appendChild(document.createTextNode("cell 1,2"));
27 newrow.appendChild(newcell);
28 newtbody.appendChild(newrow);
29 parent.insertBefore(newtbody, last);
30
31 document.body.offsetHeight;
32 document.documentElement.className = "";
33 }
34 </script>
35
36 </head>
37 <body onload="boom();">
38 <table border="1">
39 <colgroup></colgroup>
40 <tbody id="last"><tr><td>cell 2,1</td><td>cell 2,2</td></tr></tbody>
41 </table>
42 </body>
43 </html>

mercurial