From: Oleg Gaidarenko Date: Tue, 2 Sep 2014 17:44:02 +0000 (+0400) Subject: Attr: Use typeof check for getAttribute method X-Git-Tag: 3.0.0-alpha1~227 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=075da3091cda170bd8cd5ce47bad1c5b14760232;p=jquery.git Attr: Use typeof check for getAttribute method Ref 29838b6cab6f2e508f3e9692f32918c72b1a504b --- diff --git a/src/attributes/attr.js b/src/attributes/attr.js index b627fe888..caf0bc018 100644 --- a/src/attributes/attr.js +++ b/src/attributes/attr.js @@ -32,7 +32,7 @@ jQuery.extend({ } // Fallback to prop when attributes are not supported - if ( !elem.getAttribute ) { + if ( typeof elem.getAttribute === "undefined" ) { return jQuery.prop( elem, name, value ); }