6 replies [Last post]
skyrocket
skyrocket's picture
User offline. Last seen 6 years 37 weeks ago. Offline
rank Enthusiast
Enthusiast
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
User offline. Last seen 6 hours 10 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3215
Points: 522

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?

Your question may have already been answered, search and read before you ask.

skyrocket
skyrocket's picture
User offline. Last seen 6 years 37 weeks ago. Offline
rank Enthusiast
Enthusiast
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
User offline. Last seen 6 hours 10 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3215
Points: 522

IE 6 - standards vs quirks mode

Yes it should work in most modern browsers.

Your question may have already been answered, search and read before you ask.

skyrocket
skyrocket's picture
User offline. Last seen 6 years 37 weeks ago. Offline
rank Enthusiast
Enthusiast
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
User offline. Last seen 6 hours 10 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3215
Points: 522

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

Your question may have already been answered, search and read before you ask.

Daybreak_0
Daybreak_0's picture
User offline. Last seen 6 years 41 weeks ago. Offline
rank Enthusiast
Enthusiast
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