Skip to content

Warn authors against using aria-checked on checkboxes and radios #1122

@scottaohara

Description

@scottaohara

test case

authors should not use aria-checked on native input type=radio or input type=checkbox elements.

Related to this, per the note in ARIA in HTML

The HTML checked attribute can be used instead of the aria-checked attribute for menuitemcheckbox, option or switch roles when used on type=checkbox.

an <input type=checkbox role=switch> would not require an aria-checked attribute be present, because the native checked attribute and the checkbox's dirty checkedness would be sufficient to indicate the checked state for a switch, and similar roles.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions