also rework some code using classNameToList() util, we can permit any amount of spaces to css classes like Formatter addClasses
also cleanup and simplify some code around other css classes, classNameToList returns an array of string and we can take advantage of iterator available in DOM classList.add() and .remove()
classNameToList()
util, we can permit any amount of spaces to css classes like FormatteraddClasses
classNameToList
returns an array of string and we can take advantage of iterator available in DOMclassList.add()
and.remove()