mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Removed check for getAttribute in attr, seems to work without it
This commit is contained in:
parent
ce2555ea7c
commit
e07bfbef2d
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user