Object doesn't support property or method 'querySelector' in IE 10

后端 未结 5 846
南方客
南方客 2021-01-23 01:24

I encounter a problem with IE 10 regarding its support. The website is very good to use in other browser except IE.. I also tried using IE 11 and still it didn\'t work.

相关标签:
5条回答
  • 2021-01-23 02:06

    This can be caused by IE's compatibility mode. You can go under Compatibility View Settings and see if your sites domain is listed.

    0 讨论(0)
  • 2021-01-23 02:12

    I think it's something else that is fails. http://caniuse.com/#feat=queryselector according to that the support should be there in IE10.

    Make sure the IE is not using any compatability mode to view your site. Goto Settings > compatatibilty mode > make sure display intranet sites in compatability mode is NOT checked.

    0 讨论(0)
  • 2021-01-23 02:12

    please see the IE9 equivalent of querySelectorAll and check the compatibility mode of your IE browser also.

    0 讨论(0)
  • 2021-01-23 02:20

    IE Developer Tools [F12] was useful for me in diagnosing this (IE11):

    • the toolbar on dev tools has a dropdown that lets you select IE compatibility version
    • set the desired version using the dropdown on the toolbar, then refresh the page
    • in my case the error went away when using version 8 or greater

    To fix the issue, I ended up adding a meta tag as described here. (I actually added it via the web.config as shown here).

    0 讨论(0)
  • 2021-01-23 02:28

    This should solve the problem:

    • Delete all History
    • Clear Cookies
    • Reset IE settings
    0 讨论(0)
提交回复
热议问题