W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: [webstorage] Ambiguous Requirement for Key Ordering

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 7 Jul 2009 21:40:21 +0000 (UTC)
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Cc: public-webapps <public-webapps@w3.org>
Message-ID: <Pine.LNX.4.62.0907072139070.1060@hixie.dreamhostps.com>
On Tue, 9 Jun 2009, Lachlan Hunt wrote:
>
>   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.

Fixed.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 7 July 2009 21:40:58 GMT

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