Re: [whatwg/dom] Future for unique tokens in DOMTokenList (#201)

> Have you access to Edge, what result we get on this engine?

Edge 13.10586:

```js
var el = document.createElement("div");

el.className = " a a b ";
console.log(el.className.length); // 7
console.log(el.classList.length); // 3
console.log(Array.prototype.slice.call(el.classList).join(" ")); // "a a b"

el.classList.add("a"); // should remove duplicate and white space in associated attr value

console.log(el.className.length); // 7
console.log(el.classList.length); // 3
console.log(Array.prototype.slice.call(el.classList).join(" ")); // "a a b"

el.classList.remove("a");

console.log(el.className.length); // 1
console.log(el.classList.length); // 1
console.log(Array.prototype.slice.call(el.classList).join(" ")); // "b"
```

---
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/201#issuecomment-207601867

Received on Friday, 8 April 2016 20:52:51 UTC