6 replies [Last post]
skyrocket
skyrocket's picture
Offline
Enthusiast
Sydney - Australia
Last seen: 15 years 51 weeks ago
Sydney - Australia
Timezone: GMT+10
Joined: 2003-12-18
Posts: 71
Points: 0

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

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 days 16 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

IE 6 - standards vs quirks mode

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?

skyrocket
skyrocket's picture
Offline
Enthusiast
Sydney - Australia
Last seen: 15 years 51 weeks ago
Sydney - Australia
Timezone: GMT+10
Joined: 2003-12-18
Posts: 71
Points: 0

IE 6 - standards vs quirks mode

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

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 days 16 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

IE 6 - standards vs quirks mode

Yes it should work in most modern browsers.

skyrocket
skyrocket's picture
Offline
Enthusiast
Sydney - Australia
Last seen: 15 years 51 weeks ago
Sydney - Australia
Timezone: GMT+10
Joined: 2003-12-18
Posts: 71
Points: 0

IE 6 - standards vs quirks mode

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

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 days 16 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

IE 6 - standards vs quirks mode

Hi skyrocket,
That is the coolest extension so many great tools my next favorite is the CSS edit. Cool
If anyone hasn't got firefox, get it and try it out
Get FireFox

Get FireFox

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 16 years 4 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

IE 6 - standards vs quirks mode

Tony wrote:
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?

Now that is very handy - Thanks Tony

Regards
Day

The only way to learn is to do it yourself