Make sure setting boolean attributes to the same name sets the property to a boolean type
This commit is contained in:
parent
6f676e692d
commit
bc82ff0ff9
2 changed files with 7 additions and 2 deletions
|
@ -481,7 +481,7 @@ boolHook = {
|
|||
propName = jQuery.propFix[ name ] || name;
|
||||
if ( propName in elem ) {
|
||||
// Only set the IDL specifically if it already exists on the element
|
||||
elem[ propName ] = value;
|
||||
elem[ propName ] = true;
|
||||
}
|
||||
|
||||
elem.setAttribute( name, name.toLowerCase() );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue