On Mar 20, 2010, at 3:42 PM, Claude Needham wrote: > Rumor has it that by using the proper doctype it is possible to force > IE to operate in a standards compliant mode -- and thus avoid (in that > one situation at least) the quirks that one might otherwise confront. > > I have two standard-ish header templates I'm working with. (i.e. > flailing in the dark). > 4.01 strict and XHTML 1.0 Strict. > > It annoys me that apparently I need to leave off the "<?xml > version="1.0"..." thingy in order to prevent IE from going into quirks > mode.
Correct in that the xml prolog puts IE 6 (and IE 7, can't remember) in quirksmode. Incorrect in that omitting the xml prolog would invalidate your page. > This means the page will not validate as xhtml. And I've heard > some folks suggest that delivering xml as text content is not a good > idea (sounds like a fight above my pay grade). Indeed. but that is a completely off-topic discussion. > So because of this I am using the 4.01 strict. But I don't know if I'm > making a mistake or not. No mistake as far as I can see. When I'm not using the html5 doctype: <!doctype html>, I use html 401. > In any case, the real question is: "Is there a validator type page > that will tell me whether or not a particular url is definitely being > rendered in standards - mode or if it is in quirks mode." Basically > I'm looking for a quirks detector. No validator will do that. The ultimate resource on doctypes is Henri Sivonen's page: <http://hsivonen.iki.fi/doctype/> > Does such a thing as a quirks detector exist? There is a bookmarklet that does the job nicely: <http://dorward.me.uk/www/bookmarklets/qors/> Philippe --- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/