W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

[webstorage] Ambiguous Requirement for Key Ordering

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 09 Jun 2009 15:57:16 +0200
Message-ID: <4A2E6A3C.8080502@lachy.id.au>
To: public-webapps <public-webapps@w3.org>
Hi,
   The spec states [1]:

   "The key(n) method must return the name of the nth key in the list.
    The order of keys is user-agent defined, but must be consistent
    within an object between changes to the number of keys. (Thus,
    adding or removing a key may change the order of the keys, but
    merely changing the value of an existing key must not.)"

There is an ambiguity that can make that paragraph self-contradictory, 
depending on how the phrase "[the order] must be consistent within an 
object between changes to the number of keys.".  The ambiguity appears 
to be caused by the use of the word "between" in that context.  I 
initially interpreted that as meaning that the order must remain 
consistent when the number of keys changes.  But then this 
interpretation is contradicted by the parenthetical sentence following it.

Please clarify.

[1] http://dev.w3.org/html5/webstorage/#dom-storage-key

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Tuesday, 9 June 2009 13:58:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:31 GMT