11-19-2004, 11:51 AM
Quote:Granted, it's not very pretty as you can see here, but generally using a full doctype switches all browsers into the same mode, or at least very similar ones.
'Generally', and 'very similiar' modes, yes. But if you really rely on it, you have to look up the behaviour of the broswer you want to put in a certain mode, because there *are* exceptions, and quite a few of them.
Quote:This is a known bug in MSIE - it is caused by having any form of content before the DTD, such as a comment or an XML prolog. Removing it will also trigger Standards mode in MSIE6.
Unless you send the document as XML in stead of text/html with an XML declaration, in which case the behaviour is *again* different.