On Mar 21, 6:52 am, "Gareth Evans" <[EMAIL PROTECTED]> wrote:
> While not related, probably a good place to bring this up...
>
> I had a few strange up/down issues with table rows and removing them but
> mostly because IE implicitly declared the TBody

ALL (standards compliant) browsers will add a tbody element to tables
if there isn't one in the source markup.

I would expect table.down to return a table section element (most
likely a tbody or thead).  If it does otherwise, I'd consider it a
bug.


 and based on this example,
> it looks like that doesn't affect you.
> It was weird, if I went tableObj.down(1) i got TR (instead of the implicit
> tbody) but I couldn't remove the TR, I had to remove it from the TBody which
> I couldn't actually select.

If you want the first row of a table and to ignore table section
elements, use:

  table.rows[0];


> I ended up putting a physical TBody in and assigning an ID to it instead of
> the table- then everything worked as expected.
>  I was testing in IE6 in this case.
> I know the TBody is added by IE but I thought it would also be in the dom,

It's in all browser DOMs, not just IE's.


--
Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to