Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10210 closed bug (worksforme)

version of browser

Reported by: [email protected] Owned by:
Priority: low Milestone: None
Component: misc Version: 1.1.4
Keywords: Cc:
Blocked by: Blocking:

Description

Critical bug's with function $.browser, this function suggest using in terms of comparison, but this function getting " undefined" in not their browser.

In result, comparison: "if($.browser.msie
$.browser.opera)" is not correct.

Change History (2)

comment:1 Changed 12 years ago by addyosmani

Component: unfiledmisc
Priority: undecidedlow
Resolution: worksforme
Status: newclosed

When testing against $.browser (eg. if($.browser.msie){}), note that what we return is a boolean based on a check against the userAgent strings which are exposed by the browser itself. Testing the first demo here: http://api.jquery.com/jQuery.browser/ against IE6,7,8 and Opera (latest stable) (the browsers you mention), I haven't been able to reproduce the issue you're experiencing with unexpected output. Please double-check your code to ensure you're correctly using $.browser - note that this feature may be moved to a plugin in a future release of jQuery and you should ideally be using feature detection instead.

Last edited 12 years ago by addyosmani (previous) (diff)

comment:2 Changed 12 years ago by addyosmani

#10226 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.