Hi, I realize that jQuery.browser is now deprecated, but I'd like to give a use case where it makes sense to use jQuery.browser: I have some code where each browser renders slightly differently, such as how they treat borders for DIVs. If I use jQuery.browser, I can update the CSS appropriately for the quirky browsers. If jQuery.browser is eliminated in the future, I still need to detect rendering quirks.
This isn't about whether a browser supports a particular CSS or JavaScript feature, but instead it involves subtle but important differences in the rendering engines for the four major browsers: WebKit (Safari/Chrome), Gecko (Firefox), Trident (IE) and Presto (Opera). Cheers, Greg. On Feb 9, 7:16 am, Aaron Gundel <aaron.gun...@gmail.com> wrote: > jQuery.browseris deprecated in 1.3 + (don't use it). > > JQuery now uses feature detection. This is a more extensible way of > detecting which browser is being utilized. > > See the following page for more > details...http://docs.jquery.com/Utilities/jQuery.support > > On Mon, Feb 9, 2009 at 4:02 AM, Mohd.Tareq <tareq.m...@gmail.com> wrote: > > > Hi Geuis, > > > Ther is a function with alias ($.browser) it will gives u functionality to > > identify browser name > > like this $.browser.mozilla , $.browser.msie , $.browser.opera , > > $.browser.safari. > > & if u wana return the version of browser , then u have use below function > > $.browser.version it will return version of current browser according to ur > > problem ie6 u can add css on the fly. > > > hope this will work . > > > cheers & cioa > > > On Mon, Feb 9, 2009 at 11:47 AM, Geuis <geuis.te...@gmail.com> wrote: > > >> I'm working on a project where I need to detect if the browser > >> natively supports a given CSS selector. > > >> For example, if I am using the selector 'ul li:first-child', this is > >> supported by IE7, FF, and Safari but not by IE6 and below. Is there a > >> way that I can test that selector to see if the current browser > >> supports it? A feature that returns a simple boolean status would be > >> awesome. > > > -- > > ---| Regard |--- > > > Mohd.Tareque