mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 07:15:00 -05:00
Fix #10773. Improve parameter handling in removeAttr.
This commit is contained in:
@@ -355,12 +355,12 @@ jQuery.extend({
|
||||
var propName, attrNames, name, l,
|
||||
i = 0;
|
||||
|
||||
if ( elem.nodeType === 1 ) {
|
||||
attrNames = ( value || "" ).split( rspace );
|
||||
if ( value && typeof value === "string" && elem.nodeType === 1 ) {
|
||||
attrNames = jQuery.trim( value ).toLowerCase().split( " " );
|
||||
l = attrNames.length;
|
||||
|
||||
for ( ; i < l; i++ ) {
|
||||
name = attrNames[ i ].toLowerCase();
|
||||
name = attrNames[ i ];
|
||||
propName = jQuery.propFix[ name ] || name;
|
||||
|
||||
// See #9699 for explanation of this approach (setting first, then removal)
|
||||
|
||||
Reference in New Issue
Block a user