Use prop to retrieve boolean properties (so the selected hook will be used)

This commit is contained in:
timmywil 2011-05-12 19:42:53 -04:00
parent ec829431fe
commit 6f676e692d
2 changed files with 8 additions and 2 deletions

View file

@ -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;
},