Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does IE9 opens in Document Mode as IE7 standards?

When I open a webpage in IE9 with DOCTYPE as

<!DOCTYPE html> 

It opens Document Mode as IE7 standards.

I need default IE9 standards on opening the page.

How to correct this document mode problem?

A screenshot of how it comes in IE browser developer tool

enter image description here

like image 606
Justin John Avatar asked Dec 19 '12 10:12

Justin John


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."

What is IE7 compatibility mode?

Compatibility View is a feature of Windows Internet Explorer 8 that enables the browser to render a webpage nearly identically to the way that Windows Internet Explorer 7 would render it.

How do I change the document mode in ie11?

Try document modesOpen the site in Internet Explorer 11, load the F12 tools by pressing the F12 key or by selecting F12 Developer Tools from the Tools menu, and select the Emulation tab. Run the site in each document mode until you find the mode in which the site works.


2 Answers

Try this answer: https://stackoverflow.com/a/13524518/1679310.

Summary, give the IE browser more information in the meta tag:

<!DOCTYPE html> <html>   <head>     <title>My Web</title>     <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 

Edit Note: As Olly Hodgson mentioned, the proper option is IE=edge, as currently stated in the above snippet. Below is the original, also working version:

   <meta http-equiv="X-UA-Compatible" content="IE=100" /> 
like image 172
Radim Köhler Avatar answered Sep 25 '22 10:09

Radim Köhler


There can be multiple reasons why it could be parsing the document under IE7 standard:

  1. The server is sending a X-UA-Compatible header for IE7 in the HTTP response of the document. Check the server response headers using a tool like Fiddler.
  2. The HTML document is setting a meta tag with the X-UA-Compatible property value for IE7.
  3. The page is being detected automatically by IE for opening in "Compatibility view". Note here that by default all intranet sites are viewed in "Compatibility view" in IE. Uncheck the checkbox "Display intranet sites in Compatibility view" under Tools -> Compatibility view settings in IE. The "Display all websites in Compatibility view" should be unchecked too.
  4. You used the Developer tools and explicitly set to view the page to render in "IE7 standards" mode. Note that this will only occur on a per client basis though.

Update 2016-01-28
As @Gordon pointed out in the comments below, another reason can be that the network administrator has set the site for compatibility view as a Group Policy on the network.
The only resolution in that case is to contact the network administrator to remove the site from the Group Policy. See HTML1203 here.

like image 31
Tanzeel Kazi Avatar answered Sep 23 '22 10:09

Tanzeel Kazi