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

1.7/enhancement_8685
timmywil 2011-04-23 13:56:51 -04:00
parent 9b00827ac9
commit 15ccae91db
1 changed files with 1 additions and 1 deletions

View 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 ) {