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

[whatwg] DOMTokenList is unordered but yet requires sorting

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Mon, 18 May 2009 20:21:34 +0200
DOMTokenList, as an object, is semantically unordered, therefore an
arbitrary ordering can be used for enumeration.  The item method of
DOMTokenList provides an enumerator and imposes such an ordering.
Since no other enumerator is available to counter the claim, it may be
tempting to say, as a simplification, that DOMTokenList itself is ordered.
I would rather discourage you from putting it that way though because it
precludes inventing another enumerator in the future or as an extension.
Received on Monday, 18 May 2009 11:21:34 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:12 UTC