Retrieve the class attribute on a form in IE6/7. Fixes 9286.

This commit is contained in:
timmywil 2011-05-14 12:07:40 -04:00
parent cf702496ee
commit 6171e0a923
2 changed files with 7 additions and 2 deletions

View file

@ -322,7 +322,9 @@ jQuery.extend({
hooks = boolHook;
// Use formHook for forms and if the name contains certain characters
} else if ( formHook && (jQuery.nodeName( elem, "form" ) || rinvalidChar.test( name )) ) {
} else if ( formHook && name !== "className" &&
(jQuery.nodeName( elem, "form" ) || rinvalidChar.test( name )) ) {
hooks = formHook;
}
}