Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Compatibility View Through Code In IE?

I for some reason am calling a doctype preferably XHTML 1.0 Transitional, and for some reason every single time I open it in Internet Explorer I get...

Browser Mode: IE9 Compat View
Document Mode: IE7 Standards

I'll even include what my doctype looks like with the beginning of my head tags:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>

And yes, I do close <body> and <html>.

Any ideas?

like image 776
Aaron Brewer Avatar asked Dec 28 '11 00:12

Aaron Brewer


People also ask

How do I change Compatibility View in IE?

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 disable compatibility mode?

Click Tools in the browser menu bar, and then click Compatibility View. When compatibility view is OFF, a check mark no longer displays next to the Compatibility View option in the Tools menu.

How do I change Compatibility View settings in IE 11?

Open Internet Explorer, select the Tools button , and then select Compatibility View settings.

How do I remove Compatibility View from my website?

Open Internet Explorer 11, click Tools, and then click Compatibility View Settings. Pick the site to remove, and then click Remove. Sites can only be removed one at a time. If one is removed by mistake, it can be added back using this same box and the Add section.


1 Answers

Here's the documentation you are looking for: http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx

Include this and IE will render as in IE9 mode:

<meta http-equiv="X-UA-Compatible" content="IE=9" />
like image 136
Sologoub Avatar answered Oct 28 '22 08:10

Sologoub