W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] DOMTokenList is unordered but yet requires sorting

From: Erik Arvidsson <erik.arvidsson@gmail.com>
Date: Thu, 14 May 2009 13:58:20 -0700
Message-ID: <6eeb8bd10905141358g2ffeb8f6j7490b1b2781eada8@mail.gmail.com>
On Thu, May 14, 2009 at 00:30, Kristof Zelechovski
<giecrilj at stegny.2a.pl> wrote:
> If a token list represented an ordered set, it could not be sorted to get an
> item because the host would have to preserve the original (document) order
> of tokens.

The question is why does the set need to be ordered at all as long as
it is stable between changes? It would make implementations more
efficient with little no no loss in functionality.

-- 
erik
Received on Thursday, 14 May 2009 13:58:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:49 UTC