Tag Archives: quirks mode

Disable quirks mode

Ever had a site that you created and works in modern versions of IE but for some reason when viewed in them it defaults to quirks mode? I have and wished that I could disable it from going to quirks mode. In my tests the following code forces IE to display in it’s native mode(for that browser), effectively disabling quirks mode. I’ve only done a few tests but, so let me know if it works for you.

<meta http-equiv=”X-UA-Compatible” content=”IE=9″ />

Recently I have also been working on some projects and have tested them on IE9. I have found that local/intranet sites by default will display in compatability mode for some reason. Once the site is live however this will not happen. To turn off this default behaviour in IE9, hit alt then go to tools -> compatibility view settings, then untick “display intranet sites in compatibilty view”.

If your still stuck check out the following flow chart to see how IE9 handles compatibility view.