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