]> source.dussan.org Git - jquery.git/commitdiff
Fixed issue with getAttribute not existing in IE.
authorJohn Resig <jeresig@gmail.com>
Fri, 8 Sep 2006 23:17:00 +0000 (23:17 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 8 Sep 2006 23:17:00 +0000 (23:17 +0000)
src/jquery/jquery.js

index b6bffc7c9735df7b8615153b537c0ea541e4a44a..d2141375e3b27ed556e7d52a97ae6768cfeed161 100644 (file)
@@ -1746,7 +1746,7 @@ jQuery.extend({
                if ( fix[name] ) {
                        if ( value != undefined ) elem[fix[name]] = value;
                        return elem[fix[name]];
-               } else if ( elem.getAttribute ) {
+               } else if ( elem.getAttribute != undefined ) {
                        if ( value != undefined ) elem.setAttribute( name, value );
                        return elem.getAttribute( name, 2 );
                } else {