Hi all,

I've run into a strange issue with IE7/8, and was wondering if anyone
might be able to help point out the cause.

The problem arises when I have buttons which use self-closing tags
(e.g. <button />) instead of separate closing tags. This is the case,
for example, when the buttons are generated via prototypes Element
constructor, or with Scriptaculous's Builder class. The result is that
items following a self-closing button are not displayed.

An example of this is:

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<title>IE Button Closing Tags</title>

</head>
<body>
<!-- ie7 doesn't seem to like it when you use <button /> instead of
<button></button> -->
<button style="width:20px; height:10px;" type="button"></
button><p>some text</p>
<button style="width:20px; height:10px;" type="button" /><p>more text?
</p>

</body>
</html>

Does anyone know what the cause of this is? Firefox, etc. has no
problems with the later form. I could work-around the problem if I
could tell Builder to using a separate closing tag, but this doens't
seem to work, even when I write out the closing tag explicitly with
Builder.build().

Anyone have any ideas? Any help would be greatly appreciated.

Thanks,
Keith

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