Re: [whatwg/dom] Capturing event listeners are called during bubbling phase for shadow hosts (#685)

So the reason we went with the current model as outlined in #237 is because once you reach a target, all registered listeners get invoked in order, regardless their capture boolean value. Due to shadow trees creating multiple targets, targets would first get their capture listeners invoked, and then their bubble listeners. So you could observe there is a shadow tree if an earlier registered bubble listener is invoked before a capture listener.

It would make some sense to me if we changed the model and always invoked capture listeners before bubble listeners, but I don't know how compatible that would be.

-- 
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/685#issuecomment-419353747

Received on Friday, 7 September 2018 07:48:26 UTC