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