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

What is the expected behavior for a *composed* and *non-bubbling* event when dispatched inside a shadow tree?

When an event listener is attached to the host element, and a composed and non-bubbling event is dispatched within a shadow tree, the listener attached on the host element is invoked. Here is an example: https://jsfiddle.net/pmdartus/6ft9gkc4/7/

This behavior is consistent on all the browsers implementing shadow DOM.

As far as I understand the recent changes made to the dispatch event algorithm (https://github.com/whatwg/dom/pull/686), the behavior changed and now the event will only invoke the host element event handler if the event *bubbles* (step 14). Is it the new expected behavior, or did I missed something?

----

Regardless of the outcome of this question, I think it worth adding more details to the non-normative section about `composed`.

-- 
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

Received on Tuesday, 26 March 2019 09:31:19 UTC