Skip to content

Composed and non bubbling event semantic dispatched in shadow tree #742

Closed
@pmdartus

Description

@pmdartus

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 (#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions