On Mar 31, 9:25 am, "Jay donnell" <[EMAIL PROTECTED]> wrote:
> why does this fail on IE?
What does "fail" mean to you?
I undertand it to mean that whatever the code does is different to
what you expect. Without indicating what you expect, anyone else may
well say "the code does exactly what *I* expect, therefore it
succeeds".
> If I change the a tag to a b tag it works
> fine.
>
> Element.replace("foo", "<li id=\"foo\"><a>bar</a></li>"); <-- fails
Did you epxect a visual presentation indicating a link? An A element
without an href value is not a link and (probably) by default its
content won't be given a different visual representation to
surrounding content.
An A elemet with neither href or name attribute is roughly equivalent
a span element.
--
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
-~----------~----~----~----~------~----~------~--~---