Skip to content Skip to sidebar Skip to footer

Why Does The Following Throw An "object Doesn't Support Property Or Method 'importnode'" In Ie11?

Why does the following throw an 'Object doesn't support property or method 'importNode'' in IE11? Could it be my 'document mode'? I am in 'document mode' 7.

Solution 1:

Are you loading the page locally from your hard drive? If so, it's likely being displayed in the Intranet zone and therefore defaulting to IE7 compatibility mode. You can:

  1. add an MOTW to load your page from the Internet zone,
  2. serve it from a local web server,
  3. disable the settings that automatically set Intranet zone pages to compatibility view (aka IE7 mode).

And, yes, you must be in IE9 standards mode or later to use importNode.

Hope this helps...

-- Lance

P.S. Coverted to answer, per OP.

Post a Comment for "Why Does The Following Throw An "object Doesn't Support Property Or Method 'importnode'" In Ie11?"