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

Re: [widgets] localStorage vs preferences

From: Scott Wilson <scott.bradley.wilson@gmail.com>
Date: Tue, 21 Jul 2009 11:43:57 +0100
Cc: Marcos Caceres <marcosc@opera.com>, public-webapps <public-webapps@w3.org>
Message-Id: <1FCBD87F-6BF9-41E1-B807-FEE5C99C2CEA@gmail.com>
To: Robin Berjon <robin@berjon.com>

Currently I would summarize the situation as:

A UA that conforms to the W3C A+E spec MUST make widget.preferences  
The UA environment MAY also provide access to window.localStorage
The UA MAY use window.localStorage to store widget.preferences (and  
therefore the two collections will have the same content)

Recommendation for Widget authors: use widget.preferences
An author could use both, but would run the risk of unpredictable  
behaviour. For example, storing objects with the same key using both  
widget.preferences and window.localStorage would have different  
results in different UAs. For Widget authors I really think sticking  
to widget.preferences is the safest approach to ensure their widget is  


On 21 Jul 2009, at 10:32, Robin Berjon wrote:

> On Jul 20, 2009, at 17:32 , Marcos Caceres wrote:
>> Ok, so, widget.preferences MUST NOT equal window.localStorage. The  
>> are separate things. Both can be used. Right?
> Of course!
> -- 
> Robin Berjon - http://berjon.com/
>    Feel like hiring me? Go to http://robineko.com/

Received on Tuesday, 21 July 2009 10:44:45 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:17 UTC