Note: I did not update chibi-min.
This commit allows for:
$(selector).cls("classA classB classC classD")
to properly set class attribute to classA classB classC classD.
classA classB classC classD
More importantly, it also ensures the class attribute value is stripped on replace / remove actions so that:
<p class="classA classB">test</p>
without patch (notice the space):
<p class="classA ">test</p>
add also has the same issue as remove/replace. i'll try to produce a slightly more robust improvement...
better contiguous spaces handling in class lists
stripping class attribute value for more cases
Squashed my commits. Although this is less ideal than a much more robust solution (duplicate adds don't continue to concatenate to class list, for instance), a more robust solution would involve quite a few more bytes...
Of course! Chibi's great, so thank you.