Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force document mode=IE8 Standards

So I am having problems getting IE8 to not default to IE7 document mode, as our intranet is set up.

I am using IE dev tools to set plus a little bit of js to check what the browser is reporting the document mode to be.

I won't be able to change any settings other than what markup I can give. In otherwords I'm not an admin, the only control I have is within the browser.

I have tried:

<meta http-equiv="x-ua-compatible" content="IE=8">

But this does not change how the document mode is reported, it still reported as IE7.

JS Fiddle

like image 340
Jamie Hutber Avatar asked Feb 18 '13 16:02

Jamie Hutber


People also ask

How do I change document mode to IE9 standards?

Change the Document Mode to Internet Explorer 9 Standards and try to view the content again. To change the Document Mode, press F12, click Document Mode: , and then select Internet Explorer 9 Standards."

How do I permanently change document mode in ie11?

From the Settings dropdown, select F12 Developer Tools. Select the Emulation tab. Select Edge (Default) from the Document mode drop down. Select Default from the User agent string drop down.

How do I change ie11 to IE8 compatibility mode?

Restart Internet Explorer 11 and open the site you're testing, then go to Emulation tab in the F12 Developer Tools and select Enterprise from the Browser profile dropdown. If the site works, inform the IT administrator that the site needs to be added to the IE8 Enterprise Mode section.


1 Answers

One might think is would be a prerequisite, and I would agree.

But whilst working locally I hadn't declared a doctype:

Make sure you declare one:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <meta http-equiv="x-ua-compatible" content="IE=8" >

Jobs a good'n

like image 75
Jamie Hutber Avatar answered Oct 06 '22 15:10

Jamie Hutber