]> source.dussan.org Git - jquery.git/commitdiff
Switch the form nodeName check in attr to use jQuery.nodeName for consistency
authortimmywil <tim.willison@thisismedium.com>
Sat, 23 Apr 2011 17:56:51 +0000 (13:56 -0400)
committertimmywil <tim.willison@thisismedium.com>
Sat, 23 Apr 2011 17:56:51 +0000 (13:56 -0400)
src/attributes.js

index 46582d8b0300e7c2bff76c96fed3aca1d1d2f112..c2557633f777880eda3d22d7f44ab2af1aabcd52 100644 (file)
@@ -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 ) {