Re: [whatwg/dom] DOMTokenList.add/remove normalize dupes/whitespace even if they're no-ops, but .toggle doesn't (#443)

```html
data:text/html,<!doctype html>
<script>
var span = document.createElement("span");
span.setAttribute("class", "a a");
span.classList.replace("b", "a");
document.documentElement.textContent = span.className;
</script>
```

Firefox Developer Edition outputs "a", so it already normalizes in this case, contrary to the spec.  I'm still not able to test WebKit or Edge.

-- 
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/443#issuecomment-295251543

Received on Wednesday, 19 April 2017 12:32:42 UTC