From: John Resig Date: Wed, 4 Jul 2007 16:10:26 +0000 (+0000) Subject: Fixed bug that prevented $= from working on elements that didn't have the specified... X-Git-Tag: 1.1.3.1~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa7bfcfd783421b561bccb5c9402e0993b4af769;p=jquery.git Fixed bug that prevented $= from working on elements that didn't have the specified attribute. --- diff --git a/src/selector/selector.js b/src/selector/selector.js index 83b27e933..5f6f87b04 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -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] ||