Re: [whatwg/dom] <span class="a b c">.classList.replace("c", "a") -> "a b" or "b a"? (DOMTokenList) (#442)

Safari's implementation is nice in that you either replace or remove the target depending on whether the set contains input. Unfortunately that doesn't quite work with Infra's generic "matching" condition, which allows input such as "replace anything that is not "a" with "x", but I'm not sure if Infra really needs to be like that for replace.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/442#issuecomment-294844350

Received on Tuesday, 18 April 2017 13:30:44 UTC