aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/attributes.js4
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;
}
}