Skip to content

Commit 075da30

Browse files
committed
Attr: Use typeof check for getAttribute method
Ref 29838b6
1 parent 15a609f commit 075da30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes/attr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jQuery.extend({
3232
}
3333

3434
// Fallback to prop when attributes are not supported
35-
if ( !elem.getAttribute ) {
35+
if ( typeof elem.getAttribute === "undefined" ) {
3636
return jQuery.prop( elem, name, value );
3737
}
3838

0 commit comments

Comments
 (0)