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?
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?
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? :?:
IE 6 - standards vs quirks mode
Yes it should work in most modern browsers.
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.
IE 6 - standards vs quirks mode
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
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?
Now that is very handy - Thanks Tony
Regards
Day