<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite">Jeremy Orlow: Is it too late? It seems as though Joseph's suggestion could be in addition to what's already in the spec.<br></blockquote><div><br></div><div>This doesn't break anything in the current spec. So it wouldn't break any existing implementations. I'm also guessing that the groundwork for implementing a feature like this is already in place due to the ubiquity of addEventListener.</div><div><br></div><div>Pros:</div><div><br></div><div>- Less Developer Confusion: When a web developer is focusing on a particular Storage area and set a "storage" listener, unless they check the storageArea they may not realize their listener is getting fired for scripts dealing with a different Storage area. I'm not sure if this can be considered a "security" threat but it would certainly limit the potential for problems.</div><div>- Less Listener Functions Fired - Instead of every registered listener getting fired on every "storage" event, only those applicable will be fired. This may mean overall less listeners getting fired, and code that doesn't have to continually check the affected storageArea, leading to potential performance improvements.</div><div><br></div><div>Cons:</div><div><br></div><div>- This is similar to implementing the full EventTarget Interface on Storage areas. However, the only event of importance on a Storage area is "storage" not "click" or "hover" etc. Invalid event types should probably throw an error or something... or maybe this is more in the scope of DOM Events.</div><div><br></div><br><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">Anne: By the way, change requests for this specification should be made to <a href="mailto:public-webapps@w3.org">public-webapps@w3.org</a>. localStorage and friends are no longer part of HTML5.<br></blockquote></div></blockquote></div><br><div>I read from your (Anne's) blog that Web Storage has split off of HTML5, and I see it on the WebApps homepage [1] but the document itself said to send feedback to either mailing list or the bugzilla [2]. I just subscribed. In the future I'll use the other list for whats on the WebApps homepage.</div><div><br></div><div>[1]: <a href="http://www.w3.org/2008/webapps/charter/">http://www.w3.org/2008/webapps/charter/</a></div><div>[2]: <a href="http://dev.w3.org/html5/webstorage/#status-of-this-document">http://dev.w3.org/html5/webstorage/#status-of-this-document</a></div><div><br></div><div><br></div><div>- Joe</div></body></html>