summaryrefslogtreecommitdiff
path: root/layout/reftests/table-dom/deleteCol1.html
blob: d17ccc0ee3dee0cb8ea3d5f4af8ae0374ee6332e (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")[0];
  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>200</td><td>300</td><td>auto</td>
 </tr>
</table>
</BODY></HTML>