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

Re: Storage 'length' and enumeration

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 29 Apr 2009 05:02:15 +0000 (UTC)
To: "John J. Barton" <johnjbarton@johnjbarton.com>
Cc: public-webapps@w3.org
Message-ID: <Pine.LNX.4.62.0904290432000.12381@hixie.dreamhostps.com>
On Tue, 28 Apr 2009, John J. Barton wrote:
> 
> I could not figure out from the WebIDL what happens in this case:
>    sessionStore[2] = "howdy"; // no other keys in sessionStore
> 
> I guess this does not work like Javascript arrays or objects, rather I 
> expect it fails?

It works, it just sets the key "2" to the value "howdy".

(Modulo some WebIDL and WebStorage IDL bugs that I will report 
separately, oops.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 29 April 2009 05:02:53 GMT

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