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 - insertCell()
</title>
8 <h1>insertCell() 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 newcell
= touse
.insertCell(i
);
33 document
.createTextNode("This is cell number " + i
+ ".")