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

[widgets] TWI clarification

From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Mon, 30 May 2011 14:10:26 +0200
Message-ID: <BANLkTi=aHjcM4cQKo4m2qHAk=gm-SfAeoQ@mail.gmail.com>
To: public-webapps <public-webapps@w3.org>
During the testing of TWI's preferences attribute in Opera, I noticed
that preferences had stop firing events at the window object. I asked
around a bit and it was pointed out to me that Web Storage had changed
to no longer fire events at the window object that contains the
storage area. Now it only fires events at other windows. This makes
absolute sense. In response, I've clarified the text in the  TWI spec:

Upon invocation of the setItem(), removeItem() and clear() methods, if
the invocation did something, a user agent must dispatch a storage
event akin to what is specified in "the storage event" section of
[WebStorage] (i.e., the preferences attribute behaves the same as
sessionStorage and localStorage with regards to dispatching events).

I will add one more test to the test suite for widget.preferences.clear();

Marcos Caceres
Received on Monday, 30 May 2011 12:11:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:19 UTC