Re: HTMLTableElement.insertRow()

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 UTC