diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-05-14 12:07:40 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-05-14 12:07:40 -0400 |
commit | 6171e0a923c4775d0b5e560900f397c33b6341d9 (patch) | |
tree | 7d2f41d8b6a68f7a9af0686828f57044fcf0a108 /src | |
parent | cf702496ee28830f3488ed3f1c3940cfbb2dfa8f (diff) | |
download | jquery-6171e0a923c4775d0b5e560900f397c33b6341d9.tar.gz jquery-6171e0a923c4775d0b5e560900f397c33b6341d9.zip |
Retrieve the class attribute on a form in IE6/7. Fixes 9286.
Diffstat (limited to 'src')
-rw-r--r-- | src/attributes.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js index af1660fa6..0eac08a6f 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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; } } |