Search code examples
javascripthtmlinternet-explorersharepointcompatibility

Internet Explorer retro-compatibility


I'm using Internet Explorer 11 and SharePoint 2010.

I created a simple HTML page whit CSS, JavaScript and jQuery. I hosted my page in a SharePoint's page. I added a simple WebPart (Page Viewer) that link to my HTML page.

If I open my page with IE11, on my local machine, is rendered correctly; it doesn't work on SharePoint'page.

I see the property "document mode" of page on my local machine is "10" while in SharePoint 2010 has "8".

What is "document mode" property? How can I resolve this problem?

enter image description here enter image description here


Solution

  • I resolved this problem adding this code on html's head element:

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

    I found solutions there: Forcing Internet Explorer 9 to use standards document mode