Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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??

like image 421
Wayne Werner Avatar asked Feb 03 '15 20:02

Wayne Werner


People also ask

How do I change the document mode in Internet Explorer 9?

Procedure. In your Internet Explorer web browser, press F12 to open the Developer Tools window. Click Browser Mode and select the version of your web browser. Click Document Mode, and select the Internet Explorer standards for your Internet Explorer release.

What is Document mode Internet Explorer?

Document Mode is what the browser uses to render the page: IE9, IE8, IE7 or Quirks. Browser Mode sets how the browser identifies itself to the web server and to JavaScript.


1 Answers

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.

like image 50
Joshua Whitley Avatar answered Oct 18 '22 23:10

Joshua Whitley