Re: [webstorage] Ambiguous Requirement for Key Ordering

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 UTC