diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-04-23 13:56:51 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-23 13:56:51 -0400 |
commit | 15ccae91db70ab5591de66001ee2f46d540e4e19 (patch) | |
tree | abbaffce386c8670a35fd18b25a6dd9722955917 /src/attributes.js | |
parent | 9b00827ac90e0411ff2d106cb799465af18f703f (diff) | |
download | jquery-15ccae91db70ab5591de66001ee2f46d540e4e19.tar.gz jquery-15ccae91db70ab5591de66001ee2f46d540e4e19.zip |
Switch the form nodeName check in attr to use jQuery.nodeName for consistency
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js index 46582d8b0..c2557633f 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -307,7 +307,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 ] || ( elem.nodeName === "FORM" && formHook ); + hooks = jQuery.attrHooks[ name ] || ( jQuery.nodeName( elem, "form" ) && formHook ); if ( value !== undefined ) { |