summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-dom/deleteCol2.html
blob: 16016d305b41d26b50b70bb7da2f391d6d3923f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<HEAD>
<SCRIPT src=tableDom.js>
</SCRIPT>
<SCRIPT>

function doIt() {
  var col = document.getElementsByTagName("COL")[1];
  col.parentNode.removeChild(col);
  // HTML5 implies a colgroup around the cols,
  // so this test case should really be XHTML
  // in order to test bare col
}
</SCRIPT>  
</HEAD>
<BODY onload="doIt()">
<table bgcolor=orange border>
 <col width=100>
 <col width=200>
 <col width=300>
 <tr>
  <td>100</td><td>300</td><td>auto</td>
 </tr>
</table>
</BODY></HTML>