0

Why on some sites is there the option to render the page in compatibility mode, as in the little broken page icon in the address bar. Then on other sites it doesn't.

What ie9 logic in deciding if this option should be present or not

Even if the site is html5 and if i've added

<meta http-equiv="X-UA-Compatible" content="IE=9">
BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Ben
  • 1,022
  • 3
  • 13
  • 23

2 Answers2

0

I would recommend making sure you have a recent doctype set to help IE decide which renderer to use. If you wish to override it's built-in logic you can also set the render mode for IE9 using this meta tag. <meta http-equiv="X-UA-Compatible" content="IE=edge">

IE9 uses a variety of methods for determining if your page may have compatibility issues. Usually this involves the use of methods or page components that have changed behavior in later releases. Some examples, such as conditional comments, are mentioned in the msdn article found here.

Timothy055
  • 56
  • 1
  • 4
  • He's asking how IE decides whether to offer Compatibility View on a particular page. – BoltClock Apr 24 '12 at 18:39
  • Yeah I'm after knowing why IE sometimes gives the option of the compatible mode icon. Lets take for example facebook.com or bbc.co.uk when i view these sites I'm not even given the option to turn compatibility mode on. But edition.cnn.com or even youtube.com i get the icon. – Ben Apr 25 '12 at 10:49
0

Ok finally managed to get rid of compatibility mode icon from IE9. Id tried putting the meta tag in various position within the code. But always seemed to have the option to run in compatibility mode.

But adding the following to the .htaccess file soloved it for me.

Header set X-UA-Compatible "IE=edge"
Ben
  • 1,022
  • 3
  • 13
  • 23