W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2010

[whatwg] Mechanism to find available events

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 29 Dec 2010 07:27:36 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1012290726440.26618@ps20323.dreamhostps.com>
On Mon, 20 Sep 2010, Biju wrote:
> 
> We need
> HTMLNode.getSupportedEvents()  ==> returns a text array of event names
> HTMLNode.isSupportedEvent(eventName)  ==> returns true/false
> 
> Many times in particular version of browser we dont know whether an
> HTMLNode/window support particular event.
> Or what are the alternate events available, so that we can refer some
> document or do some test to find how it can be used.
> So I wish we had above methods available.

What do you mean by "supports an event"? You can dispatch any event you 
want to any event target.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 28 December 2010 23:27:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:02 UTC