Re: [whatwg/dom] Should event.stopPropagation() during capturing prevent the bubbling phase? (#916)

Thanks for that research @annevk 

I think those two bugs listed are regarding the ordering of which event listeners is called, where `capture` listeners are always called before `bubble` listeners, even on the target (which is great).

However, the issue being raised here regards calling `event.preventDefault()` inside of a `capture` listener on the `target`. Based on our understanding of the spec, calling `event.preventDefault()` inside of a `capture` listener on the `target` *should* prevent the `bubble` listener on the target from being called. That is the behaviour in Safari and jsdom. However, in Chrome and Firefox calling `event.preventDefault()` inside of a `capture` listener on the `target` will still result in the `bubble` listeners on the target being called.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/916#issuecomment-723422772

Received on Saturday, 7 November 2020 09:26:19 UTC