是否有任何浏览器实现了 DOM3 EventListenerList? [英] Have any browsers implemented the DOM3 EventListenerList?
问题描述
答案是不";早在 2010 年 3 月:
The answer was "no" back in March 2010:
我想知道从那以后是否有任何进展.
I'm wondering if there has been any progress since then.
如果答案仍然是否"...任何浏览器何时可能支持它的迹象?
If the answer's still "no" ... any indication of when any browser might support it?
推荐答案
对于那些寻求实用解决方案的人,请参阅:如何在调试时或从 JavaScript 代码中查找 DOM 节点上的事件侦听器?
EventListenerList 是在 DOM 3 事件的一些旧草案中,并且早就从规范中删除了.据我所知,至少 Gecko 仍然没有这样的常规网页,尽管它现在有 用于枚举侦听器的特权代码(扩展)的 API(参见 https://bugzilla.mozilla.org/show_bug.cgi?id=570678#c0).
EventListenerList was in some old draft of DOM 3 Events and was long removed from the spec. As far as I know, at least Gecko still doesn't have anything like this for regular web pages, although it now has an API for privileged code (extensions) to enumerate listeners (see https://bugzilla.mozilla.org/show_bug.cgi?id=570678#c0).
我浏览了 W3C 邮件列表,并就这个主题进行了一些讨论,但显然没有找到证明该功能合理的用例.这是我能找到的最新消息:
I looked through the W3C mailing lists, and there were a few discussions on this topic, but apparently no use-cases were found to justify the feature. This is the most recent message I could find:
[...] 添加此功能的动机是什么?此前,工作组决定删除相关但功能较弱的hasEventListenerNS 方法缺乏用例,并且因为有是潜在的安全问题.
[...] what is the motivation for adding this functionality at all? Previously, the working group resolved to remove the related but less powerful hasEventListenerNS method for lack of a use case, and because there are potential security issues.
(2001) http://list.w3.org/Archives/Public/w3c-wai-ua/2001OctDec/thread.html#msg89 在考虑 EventListenerList 时有一些讨论.
(2001) http://lists.w3.org/Archives/Public/w3c-wai-ua/2001OctDec/thread.html#msg89 has some discussion from way back when the EventListenerList was considered.
(2006) http://lists.w3.org/Archives/Public/www-archive/2006Mar/0032.html 向 quirksmode 的作者提出了一个问题,他似乎负责 DOM3 EventListenerList 关于此类功能用例的神话;档案没有列出回复.
(2006) http://lists.w3.org/Archives/Public/www-archive/2006Mar/0032.html asks a question to the author of quirksmode who seems to be responsible for the DOM3 EventListenerList myth about the use cases of such a feature; the archives do not list a reply.
(2008) 另一个讨论:http:///lists.w3.org/Archives/Public/public-webapi/2008Apr/thread.html#msg66
(2008) another discussion: http://lists.w3.org/Archives/Public/public-webapi/2008Apr/thread.html#msg66
注意:评论我的帖子并不是为浏览器供应商和标准组织提供反馈的好方法.我不隶属于任何一个团体,我怀疑他们会看到这里的评论或采取行动.
Note: Commenting on my post is not a good way to provide feedback for the browser vendors and standards organizations. I'm not affiliated with either group, and I doubt they will see or act on the comments here..
这篇关于是否有任何浏览器实现了 DOM3 EventListenerList?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!