Skip to content
Permalink
Browse files

Switch the form nodeName check in attr to use jQuery.nodeName for con…

…sistency
  • Loading branch information...
timmywil
timmywil committed Apr 23, 2011
1 parent 9b00827 commit 15ccae91db70ab5591de66001ee2f46d540e4e19
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ) {

0 comments on commit 15ccae9

Please sign in to comment.
You can’t perform that action at this time.