DOM::HTMLTableElement::insertRow behavior changed

Koos Vriezen koos.vriezen at xs4all.nl
Fri Nov 8 15:58:21 GMT 2002


On Fri, 8 Nov 2002, Ravikiran Rajagopal wrote:

> Hello,
>   DOM::HTMLTableElement::insertRow(-1) in HEAD appends the row and shows it at
> the end of the table. However, the same code linked with KDE 3.0.3 inserts
> the new row before the current row. I believe that HEAD is right, but is
> there a workaround for 3.0.3? The reason I ask is that many users (read RH8
> users) still run 3.0.3. My dynamically generated HTML table is shown
> correctly on HEAD but inverted (order of rows) in 3.0.3. I even tried
>   mytable.insertRow(mytable.rows().length())
> to no avail.

Have you tried:
mytable.firstChild.appendChild(document.createElement("tr"))
?

Regards,

Koos Vriezen





More information about the kfm-devel mailing list