-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std/node "EventTarget" is incompatible with global "EventTarget" #1455
Comments
So "events" implementation was reworked in #1558; we still need to fix situation with |
As for:
We have the same behaviour as node, because we also don't have a hierarchy. This should not be an issue.
This is just a dumb deviation from Web APIs. Why did anyone think this was ok? It breaks the entire model for event handlers... we should not implement this. Any Node code that uses this behaviour should be considered buggy (as it won't work in browsers), and should fix their code to not rely on this. It breaks the entire internal propagation and |
Discussed off-github: although this issue exists, it is unlikely to cause any problems and we won't address it for now. |
Currently in
node/events_test.ts
there are some tests that useEventTarget
from the global scope, however Node's implementation ofEventTarget
is different that one coming from DOM: https://nodejs.org/api/events.html#eventtarget-and-event-apiThe text was updated successfully, but these errors were encountered: