Switch the form nodeName check in attr to use jQuery.nodeName for consistency
This commit is contained in:
parent
9b00827ac9
commit
15ccae91db
|
@ -307,7 +307,7 @@ jQuery.extend({
|
||||||
|
|
||||||
// Get the appropriate hook, or the formHook
|
// Get the appropriate hook, or the formHook
|
||||||
// if getSetAttribute is not supported and we have form objects in IE6/7
|
// 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 ) {
|
if ( value !== undefined ) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue