Set corresponding property to false when removing boolean attributes. Fixes #9094
This commit is contained in:
parent
97144424cc
commit
480b88ca37
2 changed files with 12 additions and 1 deletions
|
@ -369,6 +369,12 @@ jQuery.extend({
|
|||
jQuery.attr( elem, name, "" );
|
||||
elem.removeAttributeNode( elem.getAttributeNode( name ) );
|
||||
}
|
||||
|
||||
// Set corresponding property to false for boolean attributes
|
||||
name = jQuery.propFix[ name ] || name;
|
||||
if ( !rinvalidChar.test( name ) && typeof elem[ name ] === "boolean" ) {
|
||||
elem[ name ] = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue