From 15ccae91db70ab5591de66001ee2f46d540e4e19 Mon Sep 17 00:00:00 2001 From: timmywil Date: Sat, 23 Apr 2011 13:56:51 -0400 Subject: [PATCH] Switch the form nodeName check in attr to use jQuery.nodeName for consistency --- src/attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes.js b/src/attributes.js index 46582d8b..c2557633 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 ) {