diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-03-30 17:13:15 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-03 19:13:41 -0400 |
commit | 1e9b3ef3d87a0934dec969ed469cd3cc9c910ae8 (patch) | |
tree | f616e3ed89cd951c2e7ee3deb3fb9f8da527098f /src/attributes.js | |
parent | fa4373c11ba10e040a982a641c74f8ff96f312f3 (diff) | |
download | jquery-1e9b3ef3d87a0934dec969ed469cd3cc9c910ae8.tar.gz jquery-1e9b3ef3d87a0934dec969ed469cd3cc9c910ae8.zip |
Move the check for the name attribute out of attr and down to the formHook definition
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js index e80fede93..f03985590 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -301,7 +301,7 @@ jQuery.extend({ // Get the appropriate hook, or the formHook // if getSetAttribute is not supported and we have form objects in IE6/7 - hooks = jQuery.attrHooks[ name ] || ( ( name === "name" || elem.nodeName === "FORM" ) && formHook ); + hooks = jQuery.attrHooks[ name ] || ( elem.nodeName === "FORM" && formHook ); if ( value !== undefined ) { @@ -426,7 +426,7 @@ if ( !jQuery.support.getSetAttribute ) { // Use this for any attribute on a form in IE6/7 // And the name attribute - formHook = { + formHook = jQuery.attrHooks.name = { get: function( elem, name ) { var ret = elem.getAttributeNode( name ); // Return undefined if not specified instead of empty string |