mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix for #170
This commit is contained in:
parent
05164f34be
commit
8365b37c48
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@ -1853,7 +1853,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 ( elem.getAttribute != undefined ) {
|
} else if ( elem.getAttribute != undefined && 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, 2 );
|
return elem.getAttribute( name, 2 );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user