diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 1893498da..a4ba11fca 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1853,7 +1853,7 @@ jQuery.extend({ return elem[fix[name]]; } else if( value == undefined && jQuery.browser.msie && elem.nodeName && elem.nodeName.toUpperCase() == 'FORM' && (name == 'action' || name == 'method') ) { return elem.getAttributeNode(name).nodeValue; - } else if ( elem.getAttribute != undefined ) { + } else if ( elem.getAttribute != undefined && elem.tagName ) { // IE elem.getAttribute passes even for style if ( value != undefined ) elem.setAttribute( name, value ); return elem.getAttribute( name, 2 ); } else {