function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CraigHCraigH 

IE 10 document mode being forced to IE7

 

I have a very basic VF page that is served up in sites:

 

http://testing4-developer-edition.na15.force.com/online/test

 

 

When running in IE 9 / Win 7, no issues in that it it renders with Document mode: IE9 standards

 

When running in IE10 / Win 8, it is being forced to IE7 standards (the browser is not set to run in compatability mode and the site is not set as a site to run in compatability view).

 

Any ideas on why this is happening?

 

 

<apex:page doctype="html-5.0" title="test"  cache="false" showHeader="false" sidebar="false" >
 <title>test</title>
 <body>
  <!-- Begin Default Content REMOVE THIS -->
  <h1>Congratulations</h1>
  This is your new Page
  <!-- End Default Content REMOVE THIS -->
  </body>
</apex:page>
pedersenpedersen

I just figured out why this happens.   There is a file in C:\Users\xAdministrator\AppData\Local\Microsoft\Internet Explorer\IECompatData\iecompatdata.xml and it tells IE10 to go into compatibility mode for force.com sites.  Crazy but true, they actually have force.com in the list of sites.  I'm still working out how to deal with this.  I think I've got an angle on it.  Once I get a solution figured out I'll let folks know.  I have a salesforce solution that will not run under IE7 so I need to get the Document Mode bumped up to 9 which is what I'm working on now.

Anthony PicaAnthony Pica

Try using the X-UA-Compatible meta tag:

 

<meta http-equiv="X-UA-Compatible" content="IE=9">