Skip to content

Warn on empty aria- attributes #11323

@Rich-Harris

Description

@Rich-Harris

Describe the problem

Svelte warns on this...

image

...but not on this, which is no more valid:

image

We're not 'fixing' things behind the scenes either — that'll become aria-hidden="", which is straightforwardly incorrect.

Describe the proposed solution

Stop treating empty aria-x attributes as equivalent to aria-x="true". They're not.

Importance

nice to have

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