Re: HTMLTableElement.insertRow()

Miles,

>  insertRow
>    Insert a new empty row in the table. [...]
>
>    Parameters
>      index      The row number where to insert a new row.
>
>What should the behaviour be if the table currently has
>less than (value of) index rows? Should the new row be
>added at the end; or should all the intervening rows be
>inserted?

1. Most people expects insertRow(getLength()) to append a row yet given
index is clearly not in the range of valid index values.

2. index can be end up being a very large number erroneously.  I think it is
safer to append just one row.

Docuverse DOM SDK's implementation of the HTML layer appends just one row at
the end of the table.

Best,

Don Park
Docuverse

Received on Wednesday, 7 October 1998 15:56:12 UTC