admin管理员组文章数量:1336660
MDN Web Docs specifications table for event.target
indicates that it's status is obsolete in DOM level 2 and DOM4. does it mean it's deprecated and I no longer should use it?
If so what should I use instead?
I know my question is somehow ridiculous, cause event.target is so important and we use it everywhere, but I couldn't find something useful on the net, specially W3, and I'm still obsessed with the word Obsolete
:), so I preferred to ask here. thanks
MDN Web Docs specifications table for event.target
indicates that it's status is obsolete in DOM level 2 and DOM4. does it mean it's deprecated and I no longer should use it?
If so what should I use instead?
I know my question is somehow ridiculous, cause event.target is so important and we use it everywhere, but I couldn't find something useful on the net, specially W3, and I'm still obsessed with the word Obsolete
:), so I preferred to ask here. thanks
- 1 The DOM Living Standard supersedes the other standards. So the older ones are obsolete. It's not going anywhere. – Scott Marcus Commented Mar 3, 2019 at 19:09
2 Answers
Reset to default 5You're misinterpreting MDN.
It says that the DOM4 and Document Object Model (DOM) Level 2 Events Specification's definitions of Event.target
are obsolete, not that Event.target
itself is obsolete.
The DOM (Living Standard) specification is not marked as obsolete and you should use that definition.
MDN documentation is prepared like so that you should not see the specification level that are obsolete. What you need to look at is to check out the current living standard. The status denoted by obsolete
is just that specification not the method or property itself.
When any method or property is marked as obsolete, you'll see them in top like below. For eg. check eval:
Obsolete This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
本文标签: javascriptis eventtarget deprecatedStack Overflow
版权声明:本文标题:javascript - is event.target deprecated? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742272796a2444623.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论