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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 28 November 2012 18:44:56 GMT