[whatwg] Clarification of Storage interface details

Section 4.10 has 2 details I'd like clarification on, that I think  
will probably result in changes to the spec.

1 - The entire section describes the StorageEvent interface, and  
specifies where StorageEvents should be fired when setItem() is called  
on any Storage object.  I asked the mailing list last week and am now  
reiterating the question: Shouldn't this event fire for removeItem()  
as well?
Hixie seemed to agree in IRC that it should, but I'd love to "see it  
in writing"  ;)

2 - There is no mention of an "onstorage" attribute one can set on  
their <body> element.  With this omission, it seems that the only way  
to actually listen for a storage event is to perform an  
addEventListener on the body.  The technical docs for the IE8 beta  
indicate they support onstorage, and I tend to think it should be an  
official part of the spec.

Thoughts?

~Brady

Received on Tuesday, 8 April 2008 17:57:10 UTC