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