Use prop to retrieve boolean properties (so the selected hook will be used)
This commit is contained in:
parent
ec829431fe
commit
6f676e692d
2 changed files with 8 additions and 2 deletions
|
@ -466,7 +466,7 @@ jQuery.extend({
|
|||
boolHook = {
|
||||
get: function( elem, name ) {
|
||||
// Align boolean attributes with corresponding properties
|
||||
return elem[ jQuery.propFix[ name ] || name ] ?
|
||||
return jQuery.prop( elem, name ) ?
|
||||
name.toLowerCase() :
|
||||
undefined;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue