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