“Object doesn't support this property or method” error in IE11

前端 未结 7 1037
野的像风
野的像风 2020-12-08 06:57

I am getting the error

Critical Error: Object doesn\'t support this property or method addeventlistener

while accessing the Info

7条回答
  •  囚心锁ツ
    2020-12-08 07:51

    This unfortunately breaks other things. Here is the fix I found on another site that seemed to work for me:

    I'd say leave the X-UA-Compatible as "IE=8" and add the following code to the bottom of your master page:

    
    

    This fixes a bug in core.js which incorrectly calculates that sets UserAgentInfo.strBrowse=3 for IE11 and thus supporting addEventListener. I'm not entirely sure on the details other than that but the combination of keeping IE=8 and using this script is working for me. Fingers crossed until I find the next IE11/SharePoint "bug"!

提交回复
热议问题