W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > November 2012

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 28 Nov 2012 18:44:53 +0000
To: public-webapps-bugzilla@w3.org
Message-ID: <bug-20104-2532-dPmoEEzHBF@http.www.w3.org/Bugs/Public/>

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

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:04:28 UTC