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: Tue, 27 Nov 2012 19:29:18 +0000
To: public-webapps-bugzilla@w3.org
Message-ID: <bug-20104-2532-5EYsF4NQJJ@http.www.w3.org/Bugs/Public/>

--- Comment #2 from Boris Zbarsky <bzbarsky@mit.edu> ---
I don't know.  None of this stuff is exactly super-fast, as currently specced. 
How UAs optimize it is an interesting question; Gecko doesn't try very hard at
the moment afaict, though I might change that.

One related question is whether we want:

  d.classList.add.apply(d.classList, args);

to have different behavior from:

  args.map(function(x) { d.classList.add(x); });

and in general what invariants we want this token list stuff to preserve.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 27 November 2012 19:29:19 UTC

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