IE: Why does Compatibility View disappear for some websites?

25

13

IE9 displays the Compatibility Mode button for some websites, but not for others. For the others, I can still enable it by adding it via Tools > Compatibility View Settings, and then it behaves as expected.

enter image description here

Why doesn't this button just show up always? Is there a way to override that?

tsilb

Posted 2010-11-27T22:18:28.500

Reputation: 2 492

Answers

26

Presence of the button depends on this type of meta tag:

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

Document compatibility modes

With recent versions of Internet Explorer, these modes can control the features that are supported by webpages, and the ways in which pages are displayed.

  • IE=EmulateIE8 mode tells Internet Explorer to use the directive to determine how to render content. Standards mode directives are displayed in Internet Explorer 8 standards mode and quirks mode directives are displayed in IE5 mode. Unlike IE8 mode, Emulate IE8 mode respects the directive.

  • IE=EmulateIE7 tells Internet Explorer to use the directive to determine how to render content. Standards mode directives are displayed in Internet Explorer 7 standards mode and quirks mode directives are displayed in IE5 mode. Unlike IE7 mode, Emulate IE7 mode respects the directive. For many Web sites, this is the preferred compatibility mode:

  • IE=5 renders content as if it were displayed by Internet Explorer 7's quirks mode, which is very similar to the way content was displayed in Internet Explorer 5.

  • IE=7 renders content as if it were displayed by Internet Explorer 7's standards mode, whether or not the page contains a directive.

  • IE=8 supports many established standards, including the W3C Cascading Style Sheets Level 2.1 Specification and the W3C Selectors API; it also provides limited support for the W3C Cascading Style Sheets Level 3 Specification (Working Draft) and other emerging standards.

  • IE=9 provides the highest support available for established and emerging industry standards, including the HTML5 (Working Draft), W3C Cascading Style Sheets Level 3 Specification (Working Draft), Scalable Vector Graphics (SVG) 1.0 Specification, and others.

  • IE=Edge tells Internet Explorer to display content in the highest mode available. With Internet Explorer 8, this is equivalent to IE8 mode.

If a (hypothetical) future release of Internet Explorer supports a higher compatibility mode, then pages set to edge mode will appear in the highest mode supported by that version. Those same pages will appear in IE8 mode when viewed with Internet Explorer 8; and in IE9 mode when viewed with Internet Explorer 9.

Summary

IE will not present the Compatibility View button if either:

  • the content of the meta tag equals the version of IE you are using; or
  • the content of the meta tag is set to IE=edge.

Reference

Defining Document Compatibility (Internet Explorer)

SgtOJ

Posted 2010-11-27T22:18:28.500

Reputation: 6 843

2For which, however, one could expect the web sites to render just fine, assuming that the website creator gave the tag some thought... – Arjan – 2010-11-27T22:56:59.077

8

Apart from the <meta> tag as explained in Brian's answer:

If this happens for local (intranet) sites: it seems that the default preferences always make intranet sites run in compatibility mode and, even worse, then does not show the button at all.

Disabling that "Display intranet sites in Compatibility View" setting makes the button appear for local sites too, so you can switch it off. Beware that Compatibilty View Settings is only listed in the "full" menu (press Alt-T), not in the shorthand gear-icon:

alt text alt text alt text

Alternatively, make IE not recognise intranet sites anymore.

Arjan

Posted 2010-11-27T22:18:28.500

Reputation: 29 084

What happens if you Don't want compatibility mode, but the "Display intranet sites in Compatibility View" is checked? Does this override the <meta http-equiv="X-UA-Compatible" content="IE=edge"> tag? Or does the meta tag override the compatibility setting checkbox? – Ben – 2015-03-26T15:57:44.500

@Ben, it's been a while since I had to use IE, but I think that enabling "Display intranet sites in Compatibility View" would indeed override <meta http-equiv="X-UA-Compatible" content="IE=edge">. I am not 100% sure, but I do recall being very annoyed by not not understanding why pages were displaying badly, so I can only assume that those pages did include the tag then. But then, maybe I did not know about that tag those days... – Arjan – 2015-03-26T17:59:22.640

2That is because many companies intranet sites and internal web apps were program to work on IE6. Microsoft knew that majority of the IE6 user were employees forced to use IE6. Making all site run in compatibility mode by default made a smoother, but not smooth, transition to an update version of IE. If many companies were like [edited out] then this would be the case. You got to remember change cost money. Companies only care about money. Edit out the company name to protect them. This company didn't even switch to an update version until the Google/China hack came about. – SgtOJ – 2010-11-27T23:32:10.787

@Brian, I guess you're right. Too bad though: a much better solution would have been to activate it by default. This stupid IE preference not only activates compatibility mode, but also hides the compatibility button altogether. – Arjan – 2010-11-28T07:23:28.180

Wow. Never knew about that. Was driving me crazy all day until I ran into your post. Thanks! – System Down – 2012-10-11T17:01:43.847

1

As per this comprehensive MSDN article on Compatibility View, the following list describes different ways that enable Compatibility View:

  • You click the Compatibility View button in the Address bar when viewing a webpage. When displayed, this button appears to the left of the Refresh button and contains an image of a broken piece of paper. This enables Compatibility View for all documents in the domain of the website being viewed.
  • The "Display all websites in Compatibility Mode setting" in the Compatibility View Settings is enabled.
  • The "Automatically recover from page layout errors with Compatibility View" setting is enabled and a webpage stops responding or crashes the browser. When this happens, Internet Explorer opens the page in Compatibility View after recovering from the problem.
  • Group policies that identify sites to be opened in Compatibility View are enabled by the administrator of your computer.
  • You have used the F12 developer tools to change the browser mode to identify Internet Explorer as an earlier version of the browser.
  • The Compatibility View List is enabled, which defines a list of websites that are automatically displayed in Compatibility View.

To disable/override Compatibility View, you'll have to do the reverse of the actions suggested above.

The Compatibility View list is an XML file maintained by Microsoft.

To remove your site from the Compatibility View List (or to dispute the removal of your site from the list), have the overall site owner verify that the domain site appears in the Compatibility View List. If it does, send an e-mail to iepo@microsoft.com that contains the following information:

Owner name Corporate title Company name Street address Email address Telephone number Website address

Microsoft will review the provided information and remove your site from the Compatibility View List at the next scheduled update.

mvark

Posted 2010-11-27T22:18:28.500

Reputation: 2 260

0

I've just spent a while trying to determine why the compatibility view icon isn't available on one of my company's domains, when it didn't appear to meet any of the conditions described in the other answers to this question.

The explanation is that "X-UA-Compatible" doesn't have to be a meta tag. It can also be specified as a HTTP header (not part of the HTML content), and that is the case on the domain I'm having trouble with.

This MS page has more details, many of which appear in SgtOJ's answer: http://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx

Scott Leis

Posted 2010-11-27T22:18:28.500

Reputation: 307