W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: About initStorageEvent and initStorageEventNS

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 13 Jul 2009 10:35:32 +0000 (UTC)
To: João Eiras <joaoe@opera.com>
Cc: "public-webapps@w3.org" <public-webapps@w3.org>, www-dom@w3.org
Message-ID: <Pine.LNX.4.62.0907131033170.9397@hixie.dreamhostps.com>
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:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:32 GMT