-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
AbortController.signal.addEventListener does not handle capture option #51703
Comments
In chrome, it follows the order of registered event listener. |
@climba03003 yes but I thought that |
In Safari, like Firefox, the output is:
It'd be interesting to pin down what the spec says about this. /cc @nodejs/web-standards |
Node doesn't implement bubbling, because there's no tree-like structure that's hierarchical (think about an HTMLElement that can have children/a parent). Even if there was, AbortController/EventTarget has no hierarchy, and should ignore Furthermore, here are the steps to invoke a callback (a callback is the user-supplied function when using addEventListener):
There are a few important things to note here.
I'm not an expert at EventTarget, but it would appear as though node is correct, given the differences between browsers and servers. Maybe someone else can chime in who knows more. |
Version
v20.11.0
Platform
Linux petrov-dm 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
Run code:
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
expected output (like in firefox):
What do you see instead?
actual output:
Additional information
In Firefox there is properly behavior but i dont know how this described in specifications
The text was updated successfully, but these errors were encountered: