- Notifications
You must be signed in to change notification settings - Fork20.6k
Closed
Milestone
Description
Description
WhenaddClass()
is called with an array, and one of the classes in the array is an empty string, it doesn't add all of the classes (it stops processing them after the empty string).
Minimal test case:
$('<div>').addClass(['a','','b']).attr('class')
Expected output:a b
Actual output:a