Sharepoint 2010 web part & IE 11 - targets document mode 8… APIs may not be available
-
07-10-2020 - |
Question
I am running some javascript (d3.js, sp.js) in a web part on a sharepoint 2010 site. Everything runs fine when I use chrome or firefox, however when I open the page in IE 11 it does not load correctly and I see the warning:
The attached page targets document mode 8. Some console APIs and features may not be available
.
I've tried using the emulator as IE 10 or Edge, but then nothing loads. Any thoughts or suggestions? Thanks!
Update:
I added compatibility mode and emulate IE 10, however it errors at AllItems.aspx
, Unable to set property 'outerHTML' of undefind or null reference
. If i click play through, everything loads ok.
Solution
Ok so the problem was that Sharepoint 2010 was forcing IE11 to render in IE8. I ended up changing the master file (v4.master
) for the specific sharepoint site and editing the <meta>
to default to IE=10
. It did not affect the other sharepoint sites within my larger sharepoint site, and seems to be working. Thanks, Trevor, for the lead!