Modify ↓
Ticket #10210 (closed bug: worksforme)
version of browser
| Reported by: | godligift@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | misc | Version: | 1.1.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Critical bug's with function $.browser, this function suggest using in terms of comparison, but this function getting " undefined" in not their browser.
| $.browser.opera)" is not correct. |
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.