Retrieve the class attribute on a form in IE6/7. Fixes 9286.
This commit is contained in:
parent
cf702496ee
commit
6171e0a923
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue