Skip to content

Svelte 5: Accessibility warnings not triggered by event props. #9654

@brunnerh

Description

@brunnerh

Describe the bug

I.e. using onclick is different from on:click.

Reproduction

<div onclick={() => alert('!')} /> <!-- no warning -->
<div on:click={() => alert('!')} /> <!-- warning -->

REPL

Logs

No response

System Info

REPL

Severity

annoyance

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