Why does JQuery.browser.version return 1.9.1.2 for Firefox 3.5.2
问题 Does anybody know why JQuery.browser.version returns 1.9.1.2 for Firefox 3.5.2 What's the pattern? How to detect 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)" 回答1: Apparently jQuery reports the version of the Gecko rendering engine 回答2: Possibly not the answer you're looking for, but you may be better off not be checking for browser versions anyway - instead,