Make sure setting boolean attributes to the same name sets the property to a boolean type

This commit is contained in:
timmywil 2011-05-13 13:39:38 -04:00
parent 6f676e692d
commit bc82ff0ff9
2 changed files with 7 additions and 2 deletions

View file

@ -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() );