diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-05-13 13:39:38 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-05-13 13:39:38 -0400 |
commit | bc82ff0ff9faba5e7e8c3e40f1351fb5e3fc1a41 (patch) | |
tree | 7f3e2c9eb90e281b3ffeaffece269c6d09217ddc /src/attributes.js | |
parent | 6f676e692d48b4f979ba1dfc5d10f3f16954b381 (diff) | |
download | jquery-bc82ff0ff9faba5e7e8c3e40f1351fb5e3fc1a41.tar.gz jquery-bc82ff0ff9faba5e7e8c3e40f1351fb5e3fc1a41.zip |
Make sure setting boolean attributes to the same name sets the property to a boolean type
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js index f1d2944e2..ac94081c6 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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() ); |