Bug Tracker

Changes between Initial Version and Version 1 of Ticket #10210, comment 1


Ignore:
Timestamp:
Sep 8, 2011, 1:51:42 AM (8 years ago)
Author:
addyosmani
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10210, comment 1

    initial v1  
    1 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 an undefined value.  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.
     1When 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.