[whatwg] Mechanism to find available events

Ian Hickson ian at hixie.ch
Tue Dec 28 23:27:36 PST 2010


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.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list