Skip to content

Commit

Permalink
jquery selector: closes #2939. $('[style]') wasn't being handled well.
Browse files Browse the repository at this point in the history
  • Loading branch information
flesler committed Jul 28, 2008
1 parent a27b5d0 commit 23eeaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selector.js
Expand Up @@ -336,7 +336,7 @@ jQuery.extend({
for ( var i = 0, rl = r.length; i < rl; i++ ) { for ( var i = 0, rl = r.length; i < rl; i++ ) {
var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ]; 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]) || ''; z = jQuery.attr(a,m[2]) || '';


if ( (type == "" && !!z || if ( (type == "" && !!z ||
Expand Down

0 comments on commit 23eeaf3

Please sign in to comment.