- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
早在 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/
在 Swing 应用程序中,我有许多子面板,每个子面板听一个 JSlider .周围的父面板也监听所有的子面板。为了在下面的示例中获得一致的结果,我必须先添加父项,然后然后添加本地监听器。考虑到 Ev
有没有实现DOM3 EventListenerList接口(interface)的浏览器? http://www.w3.org/TR/2001/WD-DOM-Level-3-Events-200108
当我学习如何在 Java 中触发事件时,我熟悉了 EventListenerList。当我创建自己的监听器时,我编写监听器以扩展 EventListener,我将它们存储在 EventListener
早在 2010 年 3 月,答案就是“不”: Browser EventListenerList Implementation 我想知道从那时起是否有任何进展。 如果答案仍然是“否”...任何浏览器何
使用 Event Listener List 比 Vector 有什么优势?哪个更受欢迎? 最佳答案 Vector 是伪“弃用”的,支持集合 API List。 List 可以不受限制地包含任何你想要
我已阅读 PropertyChange support 的文档和 EventListenerList .根据我的理解,两者在保存 listeners 和在 event/propertyChange 发
我遇到了这段代码。我想了解 fireStateChanged 方法的作用以及它的作用。 public abstract class AbstractModel { private Ev
在 非 GUI 应用程序 中使用 javax.swing.event.EventListenerList 是个好主意吗?我想使用它,但它是 Swing 的一部分,而且我的应用程序没有 GUI 元素。所
我们的遗留应用程序受制于一个可怕的框架(好吧,我会说出名字,它是 Tapestry 4),该框架涉及荒谬数量的 EventListeners(约 100,000 个)用于最简单的操作。我猜这超出了 j
我是一名优秀的程序员,十分优秀!