[wp-trac] Re: [WordPress Trac] #8936: jQuery browser detection bugs

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 24 08:17:21 GMT 2009


#8936: jQuery browser detection bugs
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  azaozz 
     Type:  defect (bug)       |       Status:  closed 
 Priority:  normal             |    Milestone:  2.9    
Component:  JavaScript         |      Version:         
 Severity:  normal             |   Resolution:  wontfix
 Keywords:  needs-patch        |  
-------------------------------+--------------------------------------------
Changes (by azaozz):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 Filosofo is right, also jQuery 1.2 doesn't have full browser detection
 either. Best approach is for each script to test for features it needs. If
 IE7 or IE8 misrepresent themselves as IE6, this should work well:
 {{{
 var isIE6 = typeof document.body.style.maxHeight === "undefined";
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8936#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list