[html5] r2568 - [giw] (2) Add a 'storageArea' attribute on the storage event object. (credit: be)

whatwg at whatwg.org whatwg at whatwg.org
Wed Dec 24 03:56:01 PST 2008


Author: ianh
Date: 2008-12-24 03:56:00 -0800 (Wed, 24 Dec 2008)
New Revision: 2568

Modified:
   index
   source
Log:
[giw] (2) Add a 'storageArea' attribute on the storage event object. (credit: be)

Modified: index
===================================================================
--- index	2008-12-24 11:10:20 UTC (rev 2567)
+++ index	2008-12-24 11:56:00 UTC (rev 2568)
@@ -38742,6 +38742,9 @@
 
   <h5 id=the-storage-event><span class=secno>5.10.1.5 </span>The <code title=event-storage><a href=#event-storage>storage</a></code> event</h5>
 
+  <!-- XXX fix up for workers: target is wrong, source and storageArea
+  definitions are wrong -->
+
   <p>The <dfn id=event-storage title=event-storage><code>storage</code></dfn> event
   is fired in an <code><a href=#htmldocument>HTMLDocument</a></code> when a storage area
   changes, as described in the previous two sections (<a href=#sessionStorageEvent>for session storage</a>, <a href=#localStorageEvent>for local storage</a>).</p>
@@ -38768,12 +38771,16 @@
   null.</p>
 
   <p>In addition, the event must have its <code title=dom-StorageEvent-url><a href=#dom-storageevent-url>url</a></code> attribute set to the address
-  of the page whose <code><a href=#storage-0>Storage</a></code> object was affected, and its
+  of the page whose <code><a href=#storage-0>Storage</a></code> object was affected; its
   <code title=dom-StorageEvent-source><a href=#dom-storageevent-source>source</a></code> attribute set to
   the <code><a href=#window>Window</a></code> object of the <a href=#browsing-context>browsing context</a>
   that that document is in, if the two documents are in the same
-  <a href=#unit-of-related-browsing-contexts>unit of related browsing contexts</a>, or null
-  otherwise.</p>
+  <a href=#unit-of-related-browsing-contexts>unit of related browsing contexts</a>, or null otherwise;
+  and its <code title=dom-StorageEvent-storageArea>storageArea</code>
+  attribute set to the <code><a href=#storage-0>Storage</a></code> object from the
+  <code><a href=#window>Window</a></code> object of the target <code>Document</code> that
+  represents the same kind of <code><a href=#storage-0>Storage</a></code> area as was
+  affected (i.e. session or local).</p>
 
 
   <h6 id=event-definition-0><span class=secno>5.10.1.5.1 </span>Event definition</h6>
@@ -38784,8 +38791,9 @@
   readonly attribute DOMString <span title=dom-StorageEvent-newValue>newValue</span>;
   readonly attribute DOMString <a href=#dom-storageevent-url title=dom-StorageEvent-url>url</a>;
   readonly attribute <a href=#window>Window</a> <a href=#dom-storageevent-source title=dom-StorageEvent-source>source</a>;
-  void <a href=#dom-storageevent-initstorageevent title=dom-StorageEvent-initStorageEvent>initStorageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
-  void <a href=#dom-storageevent-initstorageeventns title=dom-StorageEvent-initStorageEventNS>initStorageEventNS</a>(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
+  readonly attribute <a href=#storage-0>Storage</a> <a href=#dom-storageevent-storage title=dom-StorageEvent-storage>storageArea</a>;
+  void <a href=#dom-storageevent-initstorageevent title=dom-StorageEvent-initStorageEvent>initStorageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in <a href=#window>Window</a> sourceArg, in <a href=#storage-0>Storage</a> storageAreaArg);
+  void <a href=#dom-storageevent-initstorageeventns title=dom-StorageEvent-initStorageEventNS>initStorageEventNS</a>(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in <a href=#window>Window</a> sourceArg, in <a href=#storage-0>Storage</a> storageAreaArg);
 };</pre>
 
   <p>The <dfn id=dom-storageevent-initstorageevent title=dom-StorageEvent-initStorageEvent><code>initStorageEvent()</code></dfn>
@@ -38809,8 +38817,11 @@
   <p>The <dfn id=dom-storageevent-source title=dom-StorageEvent-source><code>source</code></dfn> attribute
   represents the <code><a href=#window>Window</a></code> that changed the key.</p>
 
+  <p>The <dfn id=dom-storageevent-storage title=dom-StorageEvent-storage><code>storage</code></dfn> attribute
+  represents the <code><a href=#storage-0>Storage</a></code> object that was affected.</p>
 
 
+
   <h5 id=threads><span class=secno>5.10.1.6 </span>Threads</h5>
 
   <p>Multiple browsing contexts must be able to access the local

Modified: source
===================================================================
--- source	2008-12-24 11:10:20 UTC (rev 2567)
+++ source	2008-12-24 11:56:00 UTC (rev 2568)
@@ -44118,6 +44118,9 @@
 
   <h5>The <code title="event-storage">storage</code> event</h5>
 
+  <!-- XXX fix up for workers: target is wrong, source and storageArea
+  definitions are wrong -->
+
   <p>The <dfn title="event-storage"><code>storage</code></dfn> event
   is fired in an <code>HTMLDocument</code> when a storage area
   changes, as described in the previous two sections (<a
@@ -44151,12 +44154,16 @@
 
   <p>In addition, the event must have its <code
   title="dom-StorageEvent-url">url</code> attribute set to the address
-  of the page whose <code>Storage</code> object was affected, and its
+  of the page whose <code>Storage</code> object was affected; its
   <code title="dom-StorageEvent-source">source</code> attribute set to
   the <code>Window</code> object of the <span>browsing context</span>
   that that document is in, if the two documents are in the same
-  <span>unit of related browsing contexts</span>, or null
-  otherwise.</p>
+  <span>unit of related browsing contexts</span>, or null otherwise;
+  and its <code title="dom-StorageEvent-storageArea">storageArea</code>
+  attribute set to the <code>Storage</code> object from the
+  <code>Window</code> object of the target <code>Document</code> that
+  represents the same kind of <code>Storage</code> area as was
+  affected (i.e. session or local).</p>
 
 
   <h6>Event definition</h6>
@@ -44167,8 +44174,9 @@
   readonly attribute DOMString <span title="dom-StorageEvent-newValue">newValue</span>;
   readonly attribute DOMString <span title="dom-StorageEvent-url">url</span>;
   readonly attribute <span>Window</span> <span title="dom-StorageEvent-source">source</span>;
-  void <span title="dom-StorageEvent-initStorageEvent">initStorageEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
-  void <span title="dom-StorageEvent-initStorageEventNS">initStorageEventNS</span>(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
+  readonly attribute <span>Storage</span> <span title="dom-StorageEvent-storage">storageArea</span>;
+  void <span title="dom-StorageEvent-initStorageEvent">initStorageEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in <span>Window</span> sourceArg, in <span>Storage</span> storageAreaArg);
+  void <span title="dom-StorageEvent-initStorageEventNS">initStorageEventNS</span>(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in <span>Window</span> sourceArg, in <span>Storage</span> storageAreaArg);
 };</pre>
 
   <p>The <dfn
@@ -44198,8 +44206,12 @@
   title="dom-StorageEvent-source"><code>source</code></dfn> attribute
   represents the <code>Window</code> that changed the key.</p>
 
+  <p>The <dfn
+  title="dom-StorageEvent-storage"><code>storage</code></dfn> attribute
+  represents the <code>Storage</code> object that was affected.</p>
 
 
+
   <h5>Threads</h5>
 
   <p>Multiple browsing contexts must be able to access the local




More information about the Commit-Watchers mailing list