Re: About initStorageEvent and initStorageEventNS

On Mon, 13 Jul 2009, João Eiras wrote:
>
> The interface for StorageEvent defines initStorageEvent() and
> initStorageEventNS(). For these functions to be of any use, there must be a
> way to create new event objects, and that way is using document.createEvent.
> However, there is no reference to document.createEvent in the entire
> webstorage spec.
> Should document.createEvent be extended ?

createEvent() takes any interface name that inherits from Event and 
creates an object of that type. See DOM3 Events for details. (Currently 
the text in DOM3 Events is pretty vague, but it looks like that section 
just hasn't been updated yet to take into account RFC2119 terms and so on 
-- the text looks unchanged from when the draft was a note. Doug, can you 
confirm that this is the case?)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 13 July 2009 10:36:06 UTC