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

Re: HTMLTableElement.insertRow()

From: Don Park <donpark@quake.net>
Date: Thu, 8 Oct 1998 06:25:04 -0700
Message-ID: <00ad01bdf2bf$bad9c070$2ee044c6@arcot-main>
To: <www-dom@w3.org>
My understanding is that

    fruitable.insertRow(1)

is equivalent to

    fruitable.insertBefore(
        fruitable.getOwnerDocument().createElement("tr"),
        fruitable.getChildNodes().item(1))

so I think you are correct.

>And I hesitate to ask this, but is Table.rows supposed to put the rows
>from the TFOOT before or after those from the TBODY?  They occur
>before in the HTML, but logically should come after in the table.


Good question.  I believe that the original document layout takes precedence
over logical order.

Best,

Don Park
Docuverse
Received on Thursday, 8 October 1998 09:30:14 GMT

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