[Javascript] Re: strange gecko (firefox/mozilla) appendchild behavior

Robert Van Dam rvandam00 at gmail.com
Thu Jul 26 12:30:06 CDT 2007


The problem isn't that I want more than one tbody, its just that
firefox/mozilla "helpfully" creates a new one for me.  IE on the other
hand just appends the tr's to the table and then doesn't display them.
 And I'm not sure exactly what konqueror is doing, it might just have
logic to append to the only auto-generated tbody if you append
directly to a table.

I fixed the problem by putting a tbody in my static html and appending
the rows to the one tbody so that no new ones get generated.  This
seems to work in every browser i've checked.

Rob

On 7/26/07, diego nunes <dnunes at gmail.com> wrote:
> On 7/26/07, Robert Van Dam <rvandam00 at gmail.com> wrote:
> > (...)
> > <table>
> > <tbody><tr><td>1</td><td>2</td></tr></tbody>
> > <tbody></tbody>
> > <tbody><tr><td>3</td><td>4</td></tr></tbody>
> > </table>
>
>     And, btw, why would you want more than one <tbody> when you resort
> the rows? Why don't you remove the old one and fill the table element
> with a new tbody bundled with the resorted rows?
>
> --
> diego nunes
> dnunes.com
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>



More information about the Javascript mailing list