Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug that prevented $= from working on elements that didn't have…
… the specified attribute.
  • Loading branch information
jeresig committed Jul 4, 2007
1 parent b0cf713 commit fa7bfcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selector/selector.js
Expand Up @@ -340,7 +340,7 @@ jQuery.extend({
var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];

if ( z == null || /href|src/.test(m[2]) )
z = jQuery.attr(a,m[2]);
z = jQuery.attr(a,m[2]) || '';

if ( (type == "" && !!z ||
type == "=" && z == m[5] ||
Expand Down

0 comments on commit fa7bfcf

Please sign in to comment.