Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

determining why a page is being renderred in compatibility mode?

I have a layout issue which is due to the containing page being rendered in compatibility mode on IE8. Is there a way to detect whats causing IE8 to enter compatibility mode for a particular page?

According to Microsoft's documents, the following conditions can cause a page to be rendered in compatibility mode (http://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx):

  • Compatibility View is enabled for the page.
  • The page is loaded in the Intranet zone and Internet Explorer 8 is configured to pages in the Intranet zone in Compatibility View.
  • Internet Explorer 8 is configured to display all Web sites in Compatibility View.
  • Internet Explorer 8 is configured to use the Compatibility View List, which specifies a set of Web sites that are always displayed in Compatibility View.
  • The Developer Tools are used to override the settings specified in the Web page.
  • The Web page encountered a page layout error and Internet Explorer 8 is configured to automatically recover from such errors by reopening the page in Compatibility View.

After reviewing the page, I've ruled out the first possibilities such that it must be a page layout error on the page. I'd like to locate this error.

like image 355
Frank Schwieterman Avatar asked Jun 23 '10 17:06

Frank Schwieterman


People also ask

How do I turn off Compatibility View?

To turn off Compatibility View, click the gear icon on the top right of your browser, then click Compatibility View settings. If KnowBe4 is listed under the Websites you've added to Compatibility View list, click Remove to remove it, then click Close.

How do I change Compatibility View settings?

To change your Compatibility View settingsOpen Internet Explorer for the desktop, click Tools, and then click Compatibility View settings. In the Compatibility View Settings box, add the problematic website URL, and then click Add. Compatibility View is turned on for this single website, for this specific computer.

How do I fix Compatibility View in Chrome?

Compatibility mode can be usually be resolved in a Google Chrome browser by clicking the red shield icon at the end of the URL address bar and loading "unsafe scripts" and reloading the page.

How do I permanently add a website to Compatibility View?

To add a site to the Compatibility View list from your Internet Explorer homepage: 1. Tap or click the Tools button, and then tap or click Compatibility View settings. 2. Under Add this website, enter the URL of the site you want to add to the list, and then tap or click Add.


1 Answers

Check if you have any <meta> tags forcing IE into compatibility mode.

You can force it to render as IE8 (fully CSS 2.1 compliant) if you wish:

<meta http-equiv="X-UA-Compatible" content="IE=8"/>
like image 190
Daniel Avatar answered Jan 01 '23 11:01

Daniel