summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-dom/deleteCol3.html
blob: 1b9880b2d57d75291b3ae625537a6e21af5bd194 (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")[2];
  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>200</td><td>auto</td>
 </tr>
</table>
</BODY></HTML>