Skip to content

Add new event test for frameworks breaking event bubbling.Β #2420

@ChrisShank

Description

@ChrisShank

Some component frameworks (e.g. react, svelte 5, solid) use "synthetic event delegation" to invoke event handlers. When used in conjunction with custom elements that attach event handlers outside of these synthetic event systems this will subtly break usage ofevent.stopPropagation(). The proposal here is to add a new test to detect when this happens and ding component frameworks that don't comply.

This issue is spurred by a conversation with @KonnorRogers and @lukewarlow on twitter.

Examples of this in action(not to pick on anyone in particular):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions