Web Browser "standards mode" & "quirks mode" and doctypes in html & xhtml
W3C QA - Recommended list of DTDs you can use in your Web document
If you search for Web Browser "standards mode", "quirks mode" and doctype, html, xhtml, xml you'll find plenty of information about the "problem" that certain browsers have but little about the "solution" !
I'm still confused but thinking that a solution might just to use PHP instead of HTML and add the following header to my web pages
<? // if (HTTP_USER_AGENT <> a-bad-browser) echo "<?doctype ...stuff...>" ?>
Before I actually code this in PHP do you think it would work ?
Or do you have a better solution ?
Comments
so is there any point in ever checking HTTP_USER_AGENT then ?
will all google analytics stats also be biased towards the first browser to access that site through that set of forward / reverse proxy servers ?