1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
4 <title>Table element insertion bugs - insertRow()
</title>
8 <h1>insertRow() bugs,
0 based
</h1>
14 This is just dummy text.
20 <script type=
"text/javascript">
23 var touse
= document
.getElementById("touse");
25 while (touse
.hasChildNodes() ) {
26 touse
.removeChild(touse
.firstChild
);
29 /* i could be 0 or 1 - whatever is first ends up at the end */
30 for ( var i
= 0 ; i
< 6; i
++ ) {
31 var newrow
= touse
.insertRow(i
);
32 var newcell
= newrow
.insertCell(0);
34 document
.createTextNode("This is row number " + i
+ ".")