aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/attributes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js
index bc065481c..ffba0b1c7 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -332,7 +332,7 @@ jQuery.extend({
ret = elem.getAttribute( name );
// Non-existent attributes return null, we normalize to undefined
- return ret === null ?
+ return ret == null ?
undefined :
ret;
}
@@ -565,7 +565,7 @@ if ( !jQuery.support.hrefNormalized ) {
jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
get: function( elem ) {
var ret = elem.getAttribute( name, 2 );
- return ret === null ? undefined : ret;
+ return ret == null ? undefined : ret;
}
});
});