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>

>  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

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.


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

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC