mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed bug that prevented $= from working on elements that didn't have the specified attribute.
This commit is contained in:
parent
b0cf71332a
commit
fa7bfcfd78
@ -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] ||
|
||||
|
Loading…
Reference in New Issue
Block a user