$ .browser.msie and IE9

I am trying to detect ALL versions of IE using jquery $.browser.msie . It works 8, 7, 6, but ignores IE9. Why is this and what is the javascript solution for detecting ie9?

JS Version: jQuery JavaScript Library v1.5

+6
source share
4 answers

Starting with version 1.9 jQuery $.browser no longer supported. Use jQuery.suport . With this change, you will need to check which features you want to test. Thus, browser validation is no longer supported. Instead of checking the browser, it is recommended to perform a function check.

Docs here

+3
source

IE9 can emulate older browsers, triggering the various “works / doesn't work” answers that you see here.

"Trident / 5.0" is present in the IE9 user-agent string in all modes, according to this SO question .

+2
source

This works for me: http://jsfiddle.net/jcxXH/

+1
source

you can override IE detection noFullScreen: {msie: / msie [0-6] /, ...} to noFullScreen: {msie: / abcdefgh /}

0
source

Source: https://habr.com/ru/post/892520/


All Articles