Wednesday, July 20, 2011

When IE7 just doesn't go away

Internet Explorer and Compatibility Views seem to be messing up our environments, forcing lower rendering modes when upper modes are available.

If we hit F12 we can see what browser mode and document mode our page is using.
We'll probably figure out IE7 is being used when IE8 or IE9 is installed.


We can do two things now:

- Disable "Display intranet sites in Compatibility View" (Tools -> "Compatibility View settings")


- And change X-UA-Compatible attribute in the master page

Turns out Microsoft ships v4.master in SharePoint with IE8 as standards mode.
<meta http-equiv="X-UA-Compatible" content="IE=8"/>

We can either set it to IE9,
<meta http-equiv="X-UA-Compatible" content="IE=9"/>

to the latest available mode,
<meta http-equiv="X-UA-Compatible" content="IE=EDGE"/>

or none at all,
<!--<meta http-equiv="X-UA-Compatible" content="IE=8"/>-->

No comments:

Post a Comment