Removed check for getAttribute in attr, seems to work without it
This commit is contained in:
parent
ce2555ea7c
commit
e07bfbef2d
1 changed files with 1 additions and 1 deletions
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -1903,7 +1903,7 @@ jQuery.extend({
|
||||||
return elem[fix[name]];
|
return elem[fix[name]];
|
||||||
} else if( value == undefined && jQuery.browser.msie && elem.nodeName && elem.nodeName.toUpperCase() == 'FORM' && (name == 'action' || name == 'method') ) {
|
} else if( value == undefined && jQuery.browser.msie && elem.nodeName && elem.nodeName.toUpperCase() == 'FORM' && (name == 'action' || name == 'method') ) {
|
||||||
return elem.getAttributeNode(name).nodeValue;
|
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 );
|
if ( value != undefined ) elem.setAttribute( name, value );
|
||||||
return elem.getAttribute( name );
|
return elem.getAttribute( name );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue