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
fromClsclass and adds the giventoClsclass to the element.Unlike DOMTokenList:replace, this will always add
toClseven iffromClsisn't in the element's class list.