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

[whatwg] Mechanism to find available events

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Wed, 29 Dec 2010 10:17:45 +0200
Message-ID: <4D1AEEA9.3010801@helsinki.fi>
On 12/29/2010 09:27 AM, Ian Hickson wrote:
> 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.

Exactly. And not all events have corresponding onfoo property.
And extension and Greasemonkey scripts can add support for
any new event types.

Received on Wednesday, 29 December 2010 00:17:45 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:29 UTC