diff --git a/src/selector/selector.js b/src/selector/selector.js index 83b27e93..5f6f87b0 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] ||