I have two questions:
How can I force IE10 to render in IE9 document mode? Currently it's rendering my page in Standard document mode.
In IE10's developer toolbar, I am not able to see the option of document mode of IE10. Is it not implemented, or is my browser version is out of date?
Thanks for all your help.
Edit: thanks everyone for the solutions provided. Earlier I was using a meta tag
<meta http-equiv="x-ua-compatible" content="IE=edge" >
just to make sure that IE will render the page in highest document mode, but I was facing some issues with IE10 standard mode, so I changed the meta tag to render the page in IE9 mode:
<meta http-equiv="x-ua-compatible" content="IE=9" >
.
I haven't seen this done before, but this is how it was done for emulating IE 8/7 when using IE 9:
If not, then try this one:
Add those to your header with the other meta tags. This should force IE10 to render as IE9.
Another option you could do (assuming you are using PHP) is add this to your
.htaccess
file:This will perform the action universally, rather than having to worry about adding the meta tag to all of your headers.
there are many ways can do this:
add X-UA-Compatible tag to head http response header
using IE tools F12
change windows Registry
You can tweak the Registry if you want to make changes only to your own system. If you have IE10 and lots of web sites you visit don't render properly in IE10, then you can tweak your registry to force IE to open in IE9 mode.
Create a DWORD as
iexplore.exe
and give value9999
. Restart your IE and it will open in IE9 mode :)Thanks to my colleague Sreejith D :)
The hack is recursive. It is like IE itself uses the component that is used by many other processes which want "web component". Hence in registry we add
IEXPLORE.exe
. In effect it is a recursive hack.Do you mean you want to tell your copy of IE 10 to render the pages it views in IE 9 mode?
Or do you mean you want your website to force IE 10 to render it in IE 9 mode?
For the former:
For the latter, the other answers are correct, but I wouldn't advise doing that. IE 10 is more standards-compliant (i.e. more similar to other browsers) than IE 9.
By what this says, IE10 (the article is referred to a preview release, anyway) it's able to use
X-UA-Compatible
only if the document is in quirks mode (noDOCTYPE
), otherwise IE10 won't react to the request.Here's an excerpt:
So, you've to do it manually with Dvelopers Tools, or with quirks mode (but I suggest to stay in IE10 mode which is for the first time aligned to the other browers' standard)
EDIT: The follows are some useful link to read:
http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx
http://blogs.msdn.com/b/ie/archive/2011/12/14/interoperable-html5-quirks-mode-in-ie10.aspx