HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2568

File a bug

SVNBugCommentTime (UTC)
2568[Gecko] [Internet Explorer] [Webkit] Add a 'storageArea' attribute on the storage event object. (credit: be)2008-12-24 11:56
Index: source
===================================================================
--- source	(revision 2567)
+++ source	(revision 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

|