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