W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

Re: localStorage Event

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Thu, 28 Jan 2010 23:41:50 +0200
Message-ID: <4B62049E.9000000@helsinki.fi>
To: Jared Morse <jarcoal@gmail.com>
CC: public-webapps@w3.org
On 1/28/10 9:34 PM, Jared Morse wrote:
> Hi, I have a concern about the web storage event spec
> (http://dev.w3.org/html5/webstorage/).
>
> The spec states:
> "When the setItem(), removeItem(), and clear()  methods are called on a
> Storage object x that is associated with a local storage area, if the
> methods did something, then in every HTMLDocument object whose Window
> object's localStorage attribute's Storage object is associated with the
> same storage area, other than x, a storage event must be fired..."
>
> My concern lies with the "other than x" part.  Unless I'm missing
> something, these events would be even more useful if they also fired in
> the HTMLDocument that initially made the storage call.

The page which is changing storage object knows already that the storage 
object is being changed. Why would it need explicit
notification (event) about that?


-Olli



>
> Thanks for your time.
>
> -Jared
Received on Thursday, 28 January 2010 21:42:30 GMT

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