Removes the given fromCls class and adds the given toCls class to the element.
fromCls
toCls
Unlike DOMTokenList:replace, this will always add toCls even if fromCls isn't in the element's class list.
True if there was a change made (class removed or added), false otherwise.
Removes the given
fromCls
class and adds the giventoCls
class to the element.Unlike DOMTokenList:replace, this will always add
toCls
even iffromCls
isn't in the element's class list.