How to do browser detection with jQuery 1.3 with $.browser.msie deprecated?
- by Darryl Hein
How should browser detection be done now that jQuery 1.3 has deprecated (and I'm assuming removed in a future version) $.browser.msie and similar?
I have used this a lot for determining which browser we are in for CSS fixes for pretty much every browser, such as:
$.browser.opera
$.browser.safari
$.browser.mozilla
... well I think that's all of them :)
The places where I use it, I'm not sure what browser issue is causing the problem, because a lot of times I'm just trying to fix a 1 px difference in a browser.
Edit: With the new jQuery functionality, there is no way to determine if you are in IE6 or IE7. How should one determine this now?