Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / tables / mozilla_expected_failures / dom / insertTbodyRebuild1.html
blob88b6f07e287f676be1f285f7b8730f1040681587
1 <HEAD>
2 <SCRIPT src=tableDom.js>
3 </SCRIPT>
4 <SCRIPT>
6 function doIt() {
7 var table = document.getElementsByTagName("TABLE")[0];
8 var tbody = document.createElement("TBODY", null);
9 var row = document.createElement("TR", null);
10 appendCell(row, 2, 1);
11 appendCell(row, 1, 1);
12 tbody.appendChild(row);
13 var refTbody = document.getElementsByTagName("TBODY")[0];
14 table.insertBefore(tbody, refTbody);
16 </SCRIPT>
17 </HEAD>
18 <BODY onload="doIt()">
19 The 2 tables should look the same
20 <table bgcolor=orange border>
21 <tbody>
22 <tr>
23 <td>c11</td><td>c12</td>
24 </tr>
25 </tbody>
26 </table>
27 <BR>
28 <table bgcolor=orange border>
29 <tbody>
30 <tr>
31 <td rowspan=2>X1</td><td>X2</td>
32 </tr>
33 </tbody>
34 <tbody>
35 <tr>
36 <td>c11</td><td>c12</td>
37 </tr>
38 </tbody>
39 </table>
40 </table>
41 <BR>
42 </BODY></HTML>