Added a fix for Safari's broken CSS getComputedStyle accessing. Additionally, added a fix for Safari mis-reporting @selected for display: none options. The test suite is now completely passing in Safari 3. (Bug #1349)

This commit is contained in:
John Resig 2007-07-29 22:32:06 +00:00
parent 80a149b828
commit 3c82f8fb4a
2 changed files with 43 additions and 12 deletions

View file

@ -339,7 +339,7 @@ jQuery.extend({
for ( var i = 0, rl = r.length; i < rl; i++ ) {
var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];
if ( z == null || /href|src/.test(m[2]) )
if ( z == null || /href|src|selected/.test(m[2]) )
z = jQuery.attr(a,m[2]) || '';
if ( (type == "" && !!z ||