-
Notifications
You must be signed in to change notification settings - Fork 298
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
Should event.stopPropagation() during capturing prevent the bubbling phase? #916
Comments
FWIW, I think Safari is right. |
This is the result of #686 and #750. It took me a while to find the relevant bugs, but it seems they are:
It does seem we need to update the domintro here. What do you all think about adding "or event listeners on the current object whose capture is different"? |
Thanks for that research @annevk I think those two bugs listed are regarding the ordering of which event listeners is called, where However, the issue being raised here regards calling |
(there is also much more background information in the jsdom issue: jsdom/jsdom#3070) |
Right, once the Chrome and Firefox bugs I listed are fixed, they will behave the same as Safari and jsdom. |
I wasn't sure if the bugs listed addressed the |
Seems like there's no normative spec issue here. Should we leave this open to track updating the domintro? |
I am currently implementing https://bugs.chromium.org/p/chromium/issues/detail?id=1052152 and it looks like in the process of doing so I am also implementing the desired behavior of this issue as a side effect. I will add a WPT for it. |
Originally jsdom/jsdom#3070.
Example code (live version):
In Safari, and per the spec (and in jsdom): logs only "capture listener".
In Firefox and Chrome: logs "capture listener" and then "bubble listener"
Which should it be?
@alexreardon also notes that the domintro for stopPropagation, which reads
implies to him it should be the Firefox and Chrome behavior.
The text was updated successfully, but these errors were encountered: