W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998

Re: HTMLTableElement.insertRow()

From: Don Park <donpark@quake.net>
Date: Wed, 7 Oct 1998 12:44:28 -0700
Message-ID: <012401bdf22c$7aaf8d10$2ee044c6@arcot-main>
To: "'DOM list'" <www-dom@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:45 GMT