0

I am facing this issue in IE9:

0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'addEventListener'.

The line of code is:

l.addEventListener("DOMContentLoaded",I,!1), 

To my knowledge jQuery 2.1.1 supports to IE9 and above. My application is in ASP.Net and want to upgrade jQuery 1.4 to 2.1.1. I tried by using below code right after the opening Head tag:

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

It did not work.

Does anyone know of a solution to resolve this issue or we can set this in config file too? Thanks in advance.

Michas
  • 8,534
  • 6
  • 38
  • 62
anshul
  • 25
  • 1
  • 9

1 Answers1

0

Per Specifying Legacy Document Modes, the value of the content attribute should be IE=9.

Note that if this is deployed across an Intranet, you may also need to change the compatibility settings on the client.

Hope this helps...

-- Lance

P.S. If setting content to IE=9 doesn't work, then something's getting in the way, e.g. syntax error, group policies, other settings. Merely changing the value of content to IE=edge won't make much of a difference.

Community
  • 1
  • 1
Lance Leonard
  • 3,285
  • 3
  • 16
  • 15