Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force Internet Explorer 10 Document Mode

Basically I have been going through a problem and would like to enforce my browser to be used under Browser Mode: IE 10 Compatable View and Document Mode: Quirks.

As in IE 10 Document Mode is IE 5 Quirks and only Quirks but, I am unable to enforce it by using document mode and meta-tag too.

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

<head>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE"/>

This is what I have been trying but no luck.

like image 439
Wasif Kirmani Avatar asked Oct 21 '22 00:10

Wasif Kirmani


1 Answers

You can try this, if the browser it IE10 the rendering machine will be changed to latest one.

!--  Force IE to use the latest version of its rendering engine -->  
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

chrome=1 means IE should use the Chrome rendering engine if installed

I think changing document type Quirks seems a bad idea, however if you need then you may have to remove the !DOCTYPE.

If none of these rules apply, the declaration determines whether the webpage renders in a standards mode, Almost Standards mode, or quirks mode.

Reference: http://msdn.microsoft.com/en-us/library/ff405803(v=vs.85).aspx

like image 126
Praveen Avatar answered Oct 27 '22 11:10

Praveen