IE 6 - standards vs quirks mode
Posted: Fri, 2004-02-20 02:33
Just reading another post on this list where the problem could be doctype switching where IE6 is dropping out of standards mode and into quirks and therefore breaking the page. My question is this: how do you know when IE6 is in standards mode or not? Is there some way of getting this feedback from a page? Maybe a plug-in tool for your browser?
PAUL - SkyRocket Design Co
web design sydney northern beaches


Moderator
Posts: 2996
Joined: 2003-03-12
Location: Brisbane
IE 6 - standards vs quirks mode
Posted: Fri, 2004-02-20 09:39
Hi skyrocket,
You can type this into the browsers address field;
javascript:alert(document.compatMode)then press enter.
A response of BackCompat means it's in quirks mode.
CSS1Compat means it in standards mode.
You can also make it into a favelet or bookmarklet?
Your question may have already been answered, search and read before you ask.
Enthusiast
Posts: 71
Joined: 2003-12-18
Location: Sydney - Australia
IE 6 - standards vs quirks mode
Posted: Fri, 2004-02-20 11:05
Tony the Elder,
:
That's most interesting! Thank you for posting. I have just tried that in Mozilla 1.5 and got a pop-up box saying "CSS1Compat" message on one of my test pages. So, obviously you don't even have to be in IE6 to test this out - it is more a generic standards test that works cross-browser? Correct?
PAUL - SkyRocket Design Co
web design sydney northern beaches
Moderator
Posts: 2996
Joined: 2003-03-12
Location: Brisbane
IE 6 - standards vs quirks mode
Posted: Fri, 2004-02-20 21:52
Yes it should work in most modern browsers.
Your question may have already been answered, search and read before you ask.
Enthusiast
Posts: 71
Joined: 2003-12-18
Location: Sydney - Australia
IE 6 - standards vs quirks mode
Posted: Tue, 2004-02-24 02:53
since I last posted I have also found there is a useful widget built in to the Web Developers toolbar - this is a free download extension for the Mozilla/Firefox browser. You can also go View > Page Info in Mozilla and you should see a message in there about Standards Compliant Mode or Quirks for the page you are viewing.
PAUL - SkyRocket Design Co
web design sydney northern beaches
Moderator
Posts: 2996
Joined: 2003-03-12
Location: Brisbane
IE 6 - standards vs quirks mode
Posted: Tue, 2004-02-24 07:59
Hi skyrocket,

That is the coolest extension so many great tools my next favorite is the CSS edit.
If anyone hasn't got firefox, get it and try it out
Get FireFox
Get FireFox
Your question may have already been answered, search and read before you ask.
Enthusiast
Posts: 393
Joined: 2003-11-15
Location: Sydney, Australia
IE 6 - standards vs quirks mode
Posted: Thu, 2004-02-26 12:21
Now that is very handy - Thanks Tony
Regards
Day
The only way to learn is to do it yourself