Why jQuery.browser.version returns 1.9.1.2 for Firefox 3.5.2

Does anyone know why jQuery.browser.version returns 1.9.1.2 for Firefox 3.5.2

Which template? How to identify major versions?

navigator.userAgent
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2"

 navigator.appVersion
"5.0 (Macintosh; en-US)"
+3
source share
4 answers

Obviously jQuery reports version of Gecko's rendering engine

+11
source

This may not be the answer you are looking for, but perhaps you better not check your browser versions, check for supported features instead. Otherwise, you can exclude browsers that do not support a specific function now, but may do so in the future.

jQuery.support?

+3

1.9.1.2 - Gecko, Firefox 3.5.2. , , , Firefox, , .

+2

, userAgent . userAgent , - .

, .

+1

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


All Articles