Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / tables / mozilla / dom / appendCol2.html
blob3bfdabdff0445a5b0af80b40f9f0693df680f1a7
1 <HEAD>
2 <SCRIPT src=tableDom.js>
3 </SCRIPT>
4 <SCRIPT>
6 function doIt() {
7 var cg = document.getElementsByTagName("COLGROUP")[0];
8 var col = document.createElement("COL", null);
9 col.width = 200;
10 cg.appendChild(col);
12 </SCRIPT>
13 </HEAD>
14 <BODY onload="doIt()">
15 The 2 tables should look the same
16 <table bgcolor=orange border>
17 <colgroup>
18 <col>
19 </colgroup>
20 <tr>
21 <td>c11</td><td>c12</td>
22 </tr>
23 </table>
24 <BR>
25 <table bgcolor=orange border>
26 <colgroup>
27 <col>
28 <col width=200>
29 </colgroup>
30 <tr>
31 <td>c11</td><td>c12</td>
32 </tr>
33 </table>
34 <BR>
35 </BODY></HTML>