Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE8 Browser Mode & Standards Mode

I need to force IE8 to display as follows:

  1. Browser Mode: Internet Explorer 8

  2. Document Mode: IE8 Standards

I have added this tag however it only affects the document mode, not the browser mode. How do I override browser mode to ensure the page is always shown with IE8 browser mode too?

<meta http-equiv="X-UA-Compatible" content="IE=8" />
like image 416
user23048345 Avatar asked Nov 12 '09 13:11

user23048345


People also ask

How do I change browser mode in IE11?

In your Internet Explorer web browser, press F12 to open the Developer Tools window. Click Browser Mode and select the version of your web browser. Click Document Mode, and select the Internet Explorer standards for your Internet Explorer release.

What is IE8 Enterprise mode?

IE8 Enterprise Mode provides a higher fidelity emulation of the Internet Explorer 8 browser by turning on functionality not available in other document modes. You can use the Enterprise Mode Site List Manager to specify any web path to load in this mode.

How do I emulate IE8 in Edge?

Click the Settings and More (ellipsis) button on the top-right corner. Select the Settings option. Click on Default browser. Under the “Internet Explorer compatibility” section, turn on the “Allow sites to be reloaded in Internet Explorer mode” toggle switch to enable IE mode on Edge.


2 Answers

Just give the HTML page the right doctype. E.g.

<!doctype html>

For an explanation and overview of all doctypes see http://hsivonen.iki.fi/doctype/. You don't necessarily need those (nasty) meta headers.

like image 148
BalusC Avatar answered Feb 23 '23 01:02

BalusC


As I understand it, the meta element you've posted tells the browser to use IE8 mode.

Using a strict doctype, e.g. <!DOCTYPE html> or <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> will tell the browser to render in standards mode.

A combination of the two will render the page in IE8 Standards mode.

like image 31
Olly Hodgson Avatar answered Feb 23 '23 01:02

Olly Hodgson