Re: [whatwg/dom] Spec for DOMTokenList stringifier disagrees with every single implementation (#105)

As far as I understand reverting 2920fc1 will make [dom-domtokenlist-stringifier](https://dom.spec.whatwg.org/#dom-domtokenlist-stringifier) use [ordered set serializer](https://dom.spec.whatwg.org/#concept-ordered-set-serializer) instead of [serialize steps](https://dom.spec.whatwg.org/#concept-dtl-serialize). While that'll take care of weird whitespace, how does that effect the collapsing of duplicate tokens (`" a a"` -> `"a"` as hinted by @ayg)? The only explanation I have is that »[…] takes a **set** and returns the concatenation […]« implies unique values. If that's the case, can this be made slightly more explicit? Also [ordered set parser](ordered-set-parser) might need changing to produce an ordered set of unique values, which would then prevent `.item()` and the iterator from exposing the duplicates.

If I got this wrong, I have no idea how the collapsing of duplicate values (from source attribute) is achieved, if at all.

---
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/105#issuecomment-211035490

Received on Sunday, 17 April 2016 14:46:17 UTC