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

```html
data:text/html,<!doctype html>
<script>
var span = document.createElement("span");
span.setAttribute("class", "c b a");
span.classList.replace("c", "a");
document.documentElement.textContent = span.getAttribute("class");
</script>
```
You're right -- in Firefox, this is also "a b".  So it seems to do the replace, then keep the first.  Anyone want to test WebKit on this second test-case, and Edge on both?

-- 
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-294838069

Received on Tuesday, 18 April 2017 13:14:14 UTC