W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

RE: [DOML3Events] ACTION-267 Proposal for event iterator

From: Travis Leithead <Travis.Leithead@microsoft.com>
Date: Tue, 28 Apr 2009 12:50:13 -0700
To: Mike Wilson <mikewse@hotmail.com>, "public-webapps@w3.org" <public-webapps@w3.org>
Message-ID: <0003CB8B8FE2154EB50431DB2B8F69C01E5098E7C8@NA-EXMSG-W601.wingroup.windeploy.ntdev.microsoft.com>
I think this was dropped because it would allow general web apps to inspect (and remove?) event handlers that were registered by code running in extensions or by the browser itself.

In general, this is a great idea for debugging or extensions, but not so great in web app deployment scenarios.

Folks can feel free to correct me if I'm way off base.


-----Original Message-----
From: public-webapps-request@w3.org [mailto:public-webapps-request@w3.org] On Behalf Of Mike Wilson
Sent: Saturday, April 25, 2009 2:36 AM
To: public-webapps@w3.org
Subject: RE: [DOML3Events] ACTION-267 Proposal for event iterator

Following up on last year's discussion on adding support for querying DOM elements about already registered event handlers:

Travis Leithead wrote on Apr 09, 2008; 08:07pm
> In considering a design for the event iterator (allow devs to
> enumerate what events have been _added_ via addEventListener to a
> given object), I looked at two general
> approaches:
> 1) Defining a new collection on every object that supports the
> EventTarget interface
> 2) Defining a 'getNextEvent' function for every object that supports
> the EventTarget interface
> 3) Defining a function that returns a static/dynamic list of event
> handlers for a given object that supports the EventTarget interface
<rest of conversation snipped>

Action page:

Mail thread view on nabble:

Was any consensus ever reached and what's the status of this suggestion now?

Personally I think this feature is a very natural part of the DOM API and believe there needs to be very good reasons not to include it.

Best regards
Mike Wilson
Received on Tuesday, 28 April 2009 19:48:46 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:16 UTC