mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery selector: closes #2939. $('[style]') wasn't being handled well.
This commit is contained in:
parent
a27b5d0468
commit
23eeaf3854
@ -336,7 +336,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|selected/.test(m[2]) )
|
||||
if ( z == null || /style|href|src|selected/.test(m[2]) )
|
||||
z = jQuery.attr(a,m[2]) || '';
|
||||
|
||||
if ( (type == "" && !!z ||
|
||||
|
Loading…
Reference in New Issue
Block a user