diff --git a/src/attributes.js b/src/attributes.js index ac94081c..af1660fa 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -317,8 +317,7 @@ jQuery.extend({ if ( !hooks ) { // Use boolHook for boolean attributes - if ( rboolean.test( name ) && - (typeof value === "boolean" || value === undefined || value.toLowerCase() === name.toLowerCase()) ) { + if ( rboolean.test( name ) ) { hooks = boolHook;