On 19.5.2008, at 17.47, Keith Hughitt wrote:
Hi Rob, Thanks for the response, and suggestions. A few comments:I don't think this question is related to Prototype.js or even javascript in general, it is an HTML question.You are right that this is not a direct Prototype question, and I probably should have asked somewhere else first, however it is relevant to Prototype users since the default Button dom-nodes produced by Prototype/Scriptaculous are of the self-closing tag form.However, if you are serving XHTML as HTML (and you must be for IE at least as it doesn't know what XHTML is) then you are serving invalid HTML. Whatever happens after that is the result of error correction and there is no specification for that.Does IE not understand XHTML Doctypes? I have read before (http:// msdn.microsoft.com/en-us/library/ms535242.aspx, etc) that at least for newer versions of IE (possibly even as early as IE6), they are able to understand XHTML doctypes, and from my personal experience, it can make a large difference.
IE 6 and 7 don't understand the application/xhtml-xml content type and thus pretty much everything is by default served as text/html, which means that if you're using an xhtml doctype, you're actually serving invalid html. This has been a source of an ongoing debate for years now: http://www.autisticcuckoo.net/archive.php?id=2005/01/30/no-extremes
Like said before, the Content-Type header is what determines the content type, not the DOCTYPE declaration in the file.
//jarkko -- Jarkko Laine http://jlaine.net http://dotherightthing.com http://www.railsecommerce.com http://odesign.fi
smime.p7s
Description: S/MIME cryptographic signature