[whatwg] Mechanism to find available events

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