[Bug 20104] Algorithm for DOMTokenList.add seems wrong if tokens are present multiple times in the list

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20104

--- Comment #5 from Erik Arvidsson <arv@chromium.org> ---
The whole idea of trying to preserve the whitespaces of the class attribute
when we mutate the DOMTokenList is something that has been bothered all along.

Let's remove duplicates and simply serialize by adding a space between each
token.

This is what JS libs did for years and polyfills still do so it should be safe.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 28 November 2012 18:44:54 UTC