Re: [widgets] localStorage vs preferences

Agreed.

Currently I would summarize the situation as:

A UA that conforms to the W3C A+E spec MUST make widget.preferences  
available.
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  
portable.

S

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