Skip to content
Permalink
Browse files

Removed check for getAttribute in attr, seems to work without it

  • Loading branch information
jzaefferer committed Nov 8, 2006
1 parent ce2555e commit e07bfbef2d12e03d81f88c99275a63698b643bcc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery/jquery.js
@@ -1903,7 +1903,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 ( (jQuery.browser.msie || elem.getAttribute != undefined) && elem.tagName ) { // IE elem.getAttribute passes even for style; Do not "call" elem.getAttribute in IE <- weird crap
} else if ( elem.tagName ) { // IE elem.getAttribute passes even for style
if ( value != undefined ) elem.setAttribute( name, value );
return elem.getAttribute( name );
} else {

0 comments on commit e07bfbe

Please sign in to comment.
You can’t perform that action at this time.