summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-dom/insertRowsRebuild1.html
blob: 35a19cb38d54592e5fff651121bb2024b6b9ac2b (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
<HEAD>
<SCRIPT src=tableDom.js>
</SCRIPT>
<SCRIPT>

function doIt() {
  var tbody = document.getElementsByTagName("TBODY")[0];
  var row = document.createElement("TR", null);
  appendCell(row, 2, 1);
  appendCell(row, 1, 1);
  var refRow = document.getElementsByTagName("TR")[0];
  tbody.insertBefore(row, refRow);
}
</SCRIPT>  
</HEAD>
<BODY onload="doIt()">
<table bgcolor=orange border>
 <tr>
  <td rowspan=2>c11</td><td>c12</td>
 </tr>
</table>
</BODY></HTML>