diff options
author | timmywil <timmywillisn@gmail.com> | 2011-08-25 15:33:38 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-08-25 15:33:54 -0400 |
commit | d723942b274e3e48dac82ebde11906a4cb349415 (patch) | |
tree | b96993c977f1193fceaf7624e5bf774f3237c6e6 /src/attributes.js | |
parent | e57057739bf0b272113b4b7aa0f3efa369d3fd69 (diff) | |
download | jquery-d723942b274e3e48dac82ebde11906a4cb349415.tar.gz jquery-d723942b274e3e48dac82ebde11906a4cb349415.zip |
Revert back to always setting the attribute to empty string before removal. Fixes #9699.
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/attributes.js b/src/attributes.js index d92729ad2..dd985b494 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -366,14 +366,9 @@ jQuery.extend({ var propName; if ( elem.nodeType === 1 ) { name = jQuery.attrFix[ name ] || name; - - if ( jQuery.support.getSetAttribute ) { - // Use removeAttribute in browsers that support it - elem.removeAttribute( name ); - } else { - jQuery.attr( elem, name, "" ); - elem.removeAttributeNode( elem.getAttributeNode( name ) ); - } + + jQuery.attr( elem, name, "" ); + elem.removeAttribute( name ); // Set corresponding property to false for boolean attributes if ( rboolean.test( name ) && (propName = jQuery.propFix[ name ] || name) in elem ) { |