gpt4 book ai didi

dom - 有浏览器实现了 DOM3 EventListenerList 吗?

转载 作者:行者123 更新时间:2023-12-02 20:51:30 25 4
gpt4 key购买 nike

早在 2010 年 3 月,答案就是“不”:

Browser EventListenerList Implementation

我想知道从那时起是否有任何进展。

如果答案仍然是“否”...任何浏览器何时可能支持它的迹象?

最佳答案

对于那些寻找实用解决方案的人,请参阅:How to find event listeners on a DOM node when debugging or from the JavaScript code?

<小时/>

EventListenerList 存在于 DOM 3 Events 的一些旧草案中,并且早已从规范中删除。据我所知,至少Gecko对于常规网页仍然没有类似的东西,尽管它现在有an API for privileged code (extensions) to enumerate listeners (参见https://bugzilla.mozilla.org/show_bug.cgi?id=570678#c0)。

我浏览了 W3C 邮件列表,有一些关于此主题的讨论,但显然没有找到任何用例来证明该功能的合理性。这是我能找到的最新消息:

[...] 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://lists.w3.org/Archives/Public/w3c-wai-ua/2001OctDec/thread.html#msg89早在考虑 EventListenerList 时就有过一些讨论。

(2006)http://lists.w3.org/Archives/Public/www-archive/2006Mar/0032.html向 quirksmode 的作者提出一个问题,他似乎对 DOM3 EventListenerList 关于此类功能的用例的神话负有责任;文件没有列出回复。

(2008)另一个讨论:http://lists.w3.org/Archives/Public/public-webapi/2008Apr/thread.html#msg66

注意:对我的帖子发表评论并不是向浏览器供应商和标准组织提供反馈的好方法。我不属于任何一个团体,我怀疑他们会看到这里的评论或根据这里的评论采取行动。

关于dom - 有浏览器实现了 DOM3 EventListenerList 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7810534/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com