On Apr 9, 2008, at 2:16 PM, Travis Leithead wrote:


I've been specifically requested to add such support into IE by various customers. Most of their use-cases involve script that is trying to 'clean-up' event handlers for which they did not set, and do not have a pre-existing handle to the function callback.

Could you be more specific about the use cases? That sounds pretty vague, and from your example, it's also not clear that enumeration is even the most useful API to address these use cases. It sounds like an API to clear all event listeners on a node would be more appropriate.

I also wonder why anyone would want to remove event handlers that they did not install themselves, we have not received requests like this for Safari or WebKit. I wonder if this might be due to the fact that leaving event listeners attached after leaving the page can cause memory leaks in IE. Other browsers don't have this problem, so I think the right solution, if this is the motivation, would be to fix the memory leaks.

Also I am not sure why IE customers would be requesting extensions to DOM Events, since IE doesn't yet support DOM Events at all. (Though to be fair, perhaps you are translating requests for extensions to IE's event model into requests for extensions to DOM events.)

Regards,
Maciej


Reply via email to