-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
EventTarget is not DOM spec Compliant #54617
Copy link
Copy link
Closed
Labels
eventsIssues and PRs related to EventEmitter and the events module.Issues and PRs related to EventEmitter and the events module.web-standardsIssues and PRs related to web-platform APIs and standards compliance.Issues and PRs related to web-platform APIs and standards compliance.
Description
Activity
Metadata
Metadata
Assignees
Labels
eventsIssues and PRs related to EventEmitter and the events module.Issues and PRs related to EventEmitter and the events module.web-standardsIssues and PRs related to web-platform APIs and standards compliance.Issues and PRs related to web-platform APIs and standards compliance.
While Node.js's
node:eventsmodule provides similar functionality to chromium, it does not comply with the DOM spec.Consider the following code snippet:
In Node.js (and Chromium), this code will log
EventTarget {}. However, in other engines and browsers, it will lognull. As a result, Node.js may not be fully compliant withEventTarget-constructible.any.js.