On Aug 30, 7:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I was wondering why jquery would not automatically do a browser sniff, > and fall back to methods that non-supported browsers understand.
Why browser sniff at all? Why not detect for supported methods and do what is supported. I'm a bit concerned at the level of browser sniffing already in jQuery, as has been pointed in a recent thread in a different group. For example, | --jquery-1.1.4.js:1604--------------------------------------------- | // check if target is a textnode (safari) | if (jQuery.browser.safari && event.target.nodeType == 3) | event.target = originalEvent.target.parentNode; Why not just: if (event.target.nodeType == 3) event.target = originalEvent.target.parentNode; ? In some fringe cases, resorting to browser sniffing as a last resort may be justified, but surely some of the sniffing that exists in jQuery already is unnecessary. Matt Kruse