brandozz
brandozz

Reputation: 1119

Could IE=edge affect the document mode?

In the header of my website I have the following meta tag:

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

As I understand it, IE=edge will tell IE to view the webpage in the highest mode that the browser is capable of displaying. So if the visitor is using IE9 it will display the page with IE9 standards.

I just recently had somebody send me a screen shot of our website using IE9 because the site is not displaying correctly and the settings are: Browser Mode: IE9 and Document Mode: IE7 Standards. I've been unable to recreate the display issues on my end and have not had any other complaints. I'm not sure why IE is using IE7 standards for the document mode.

Is there a reason why IE would use IE7 standards for the Document mode? IE=edge wouldn't be to blame for this would it?

Edit:

This is what I currently have in my header, could IE be ignoring the meta tag:

<!doctype html>  

<!--[if IEMobile 7 ]> <html <?php language_attributes(); ?>class="no-js iem7"> <![endif]-->
<!--[if lt IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html <?php language_attributes(); ?> class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html <?php language_attributes(); ?> class="no-js ie8"> <![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">

Upvotes: 0

Views: 135

Answers (1)

securecodeninja
securecodeninja

Reputation: 2515

Let me further provide more information on the case of how Compatibility View settings would set the document mode to IE7.

As explicitly mentioned in the Internet Explorer Standards Support Documentation: https://msdn.microsoft.com/en-us/library/ff405771(v=vs.85).aspx

Compatibility View settings can also impact the document mode selection:

  • If a webpage is retrieved from a website in the Local intranet zone, IE7 mode is used.

  • If the webpage is retrieved from a site in a domain on the Compatibility View list (and the list is active), IE7 mode is used

So either one of this is true for your situation

Upvotes: 1

Related Questions