Is it a jQuery 1.8.0 bug or a Chrome's bug that $.browser.safari and $.browser.webkit throws undefined
See Example Fiddle – JQUERY 1.8.0
See Example Fiddle – JQUERY 1.7.2
Note: I am using Chrome 21.0.1180.83 m
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the documentation,
$.browser.safariis deprecated. Also, the entire$.browserobject isn’t even recommended for use:Anyways,
$.browser.chromeis defined for Chrome (at least for me).Demo: http://jsfiddle.net/Pd3gf/1/
Why do you need to detect browsers in the first place? Just use
$.supportto see whether a browser supports a specific feature.