aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/attributes/attr.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/attributes/attr.js b/src/attributes/attr.js
index f88808324..ae48676d1 100644
--- a/src/attributes/attr.js
+++ b/src/attributes/attr.js
@@ -86,21 +86,12 @@ jQuery.extend( {
},
removeAttr: function( elem, value ) {
- var name, propName,
+ var name,
i = 0,
attrNames = value && value.match( rnotwhite );
if ( attrNames && elem.nodeType === 1 ) {
while ( ( name = attrNames[ i++ ] ) ) {
- propName = jQuery.propFix[ name ] || name;
-
- // Boolean attributes get special treatment (#10870)
- if ( jQuery.expr.match.bool.test( name ) ) {
-
- // Set corresponding property to false
- elem[ propName ] = false;
- }
-
elem.removeAttribute( name );
}
}
@@ -120,6 +111,7 @@ boolHook = {
return name;
}
};
+
jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
var getter = attrHandle[ name ] || jQuery.find.attr;