<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000099">
The spec says:<br>
<br>
"When the <code title="dom-Storage-setItem"><a
 href="http://dev.w3.org/html5/webstorage/#dom-storage-setitem">setItem()</a></code>,
<code title="dom-Storage-removeItem"><a
 href="http://dev.w3.org/html5/webstorage/#dom-storage-removeitem">removeItem()</a></code>,
and <code title="dom-Storage-clear"><a
 href="http://dev.w3.org/html5/webstorage/#dom-storage-clear">clear()</a></code>
methods are called on a <code><a
 href="http://dev.w3.org/html5/webstorage/#storage-0">Storage</a></code>
object <var title="">x</var> that is associated with a session storage
area, if the methods did something, then in every <code>HTMLDocument</code>
object whose <code>Window</code> object's <code
 title="dom-sessionStorage"><a
 href="http://dev.w3.org/html5/webstorage/#dom-sessionstorage">sessionStorage</a></code>
attribute's <code><a
 href="http://dev.w3.org/html5/webstorage/#storage-0">Storage</a></code>
object is associated with the same storage area, other than <var
 title="">x</var>, a <code title="event-storage"><a
 href="http://dev.w3.org/html5/webstorage/#event-storage">storage</a></code>
event must be fired, as <a
 href="http://dev.w3.org/html5/webstorage/#event-storage"
 title="event-storage">described below</a>."<br>
<br>
[<a class="moz-txt-link-freetext"
 href="http://dev.w3.org/html5/webstorage/#dom-sessionstorage">http://dev.w3.org/html5/webstorage/#dom-sessionstorage</a>]<br>
<br>
The same applies to localStorage.<br>
<br>
Maybe I read something wrong, but as a sessionStorage object is always
unique to its document (it is cloned when a new document with the same
origin is created and then independent from the original document's
object) it, in my opinion, doesn't make sense to send the event to any
other document then the one its storage has been changed. On the other
hand, it makes sense to me to not fire the event in the same document
where the storage has been changed (as for localStorage), then, I'd say
there should be no event for sessionStorage at all. I simply don't a
case when two or more documents would share a single sessionStorage
object.<br>
<br>
Thanks for clearing this.<br>
<br>
-hb-<br>
</body>
</html>