Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / tables / mozilla / dom / insertCols2.html
blob08ba06f58c3e5fc57ad72fad962b9f989bb55baa
1 <HEAD>
2 <SCRIPT src=tableDom.js>
3 </SCRIPT>
4 <SCRIPT>
6 function doIt() {
7 var refCol = document.getElementsByTagName("COL")[1];
8 var col = document.createElement("COL", null);
9 col.width = 200;
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=100>
18 <col width=300>
19 <tr>
20 <td>100</td><td>200</td><td>300</td>
21 </tr>
22 </table>
24 <BR>
25 <table bgcolor=orange border>
26 <col width=100>
27 <col width=200>
28 <col width=300>
29 <tr>
30 <td>100</td><td>200</td><td>300</td>
31 </tr>
32 </table>
33 </BODY></HTML>