Search code examples
htmlinternet-explorerquirks-mode

Is it possible to force IE to use IE5 quirks mode?


I have this question and this one and also this one. Unfortunately it appears that they do not work for me.

I've also looked at the Microsoft docs, to no avail.

I have tried a couple of things.

I added <meta http-equiv="X-UA-Compatible" content="IE=5"> to my head. I added <!DOCTYPE html> to the beginning of my document along with the meta tag. Still no dice. The only thing that happens is it goes into Document Mode: Quirks:

Quirky

However, this does not work. My page is broken. But when I select IE5 quirks:

5 times as quirky!

Everything works. For whatever value of works actually renders the page.

Though, things are a little bit more bizarre, because the page works just fine in Chrome and Firefox.

Oh, wow. Apparently it also works with

IE8 Standards???

IE8 standards.

Changing it to content="IE=8" or content="IE=EmulateIE8" also appears not to work.

What am I doing wrong??


Solution

  • Leave the DTD off and add the following in the <head>:

    <meta http-equiv="X-UA-Compatible" content="IE=5">
    

    From http://www.nczonline.net/blog/2010/01/19/internet-explorer-8-document-and-browser-modes/

    Tested as working in IE11 on Win 8.1 and IE10 on Win 7.