Re: [whatwg/dom] Composed and non bubbling event semantic dispatched in shadow tree (#742)

So the problem is that we created events that only have a capture phase from the view of certain trees.

I think what's needed here is these changes:

1. Step 5.14 of https://dom.spec.whatwg.org/#concept-event-dispatch should not be conditional upon "If event’s bubbles attribute is true".
2. Step 5.14.2 should be conditional upon "If event’s bubbles attribute is true" and use continue there to go to the next struct.

This would make step 14 read:

> For each struct in event’s path:
> 1. If struct’s target is non-null, then set event’s eventPhase attribute to AT_TARGET.
> 2. Otherwise:
>    1. If event’s bubbles attribute is false, then continue.
>    2. Set event’s eventPhase attribute to BUBBLING_PHASE.
> 3. Invoke with struct, event, "bubbling", and legacyOutputDidListenersThrowFlag if given.

cc @whatwg/components 

-- 
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/742#issuecomment-476558030

Received on Tuesday, 26 March 2019 10:14:29 UTC