DOM::HTMLTableElement::insertRow behavior changed

David Faure david at mandrakesoft.com
Fri Nov 8 15:51:04 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 08 November 2002 16:39, Ravikiran Rajagopal wrote:
> Hello,
>   DOM::HTMLTableElement::insertRow(-1) in HEAD appends the row and shows it at 
> the end of the table. 

Yes. The DOM spec has just been changed to specify this behaviour
(and it's always been the way IE does it).

> 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.

insertRow was _really_ broken, which is why I fixed it in CVS HEAD :)
Sections were not created automatically, the number of rows in sections was
set to 0 and never changed.... AFAICS insertRow(rows.length()) should work
in 3.0.3 though, I'm surprised that it doesn't. Well, it should work if the tbody
was the only section, i.e. no thead nor tfoot...

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD4DBQE9y91o72KcVAmwbhARAtN9AJwIAN4BpJYEoS1ZLfqkpfx9tHHDbQCXTF1+
3czjJjbOytXHmZDx5OqK2A==
=cBmd
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list