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

Re: [widgets] Seeking comments on Last Call WD of Widgets: APIs and Events spec; deadline 15 Sept 2009

From: Scott Wilson <scott.bradley.wilson@gmail.com>
Date: Thu, 20 Aug 2009 10:46:50 +0100
Cc: public-webapps WG <public-webapps@w3.org>
Message-Id: <2AB1EB02-CC16-4293-B094-137AA01605BE@gmail.com>
To: marcosc@opera.com
The Storage [1 interface ] is defined as:

interface Storage {
   readonly attribute unsigned long length;
   getter any key(in unsigned long index);
   getter any getItem(in DOMString key);
   setter creator void setItem(in DOMString key, in any data);
   deleter void removeItem(in DOMString key);
   void clear();
};

I don't see any mention of accessing Storage as an array in either  
WebStorage or Widgets A&E.

S

[1] http://dev.w3.org/html5/webstorage/#the-storage-interface


On 20 Aug 2009, at 10:13, Marcos Caceres wrote:

> On Wed, Aug 19, 2009 at 2:02 PM, Scott
> Wilson<scott.bradley.wilson@gmail.com> wrote:
>> 6.4.2 Usage Example
>>
>> I haven't come across the syntax: "widget.preferences[key]" before  
>> - all
>> previous discussions have used the syntax:
>> "widget.preferences.getItem(key)", which is the syntax used in  
>> WebStorage
>> [1]
>>
>> I presume the example is in error.
>
> The use of widget.preferences[key] is correct.
>
>
> -- 
> Marcos Caceres
> http://datadriven.com.au




Received on Thursday, 20 August 2009 09:47:41 GMT

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