Skip to content

Flag aria-checked on an input type=checkbox or radio #347

Closed

Description

@carmacleod

Flag aria-checked on an input type=checkbox or radio, as the element's default checked attribute / state always wins out anyway.

https://w3c.github.io/html-aria/tests/checked-test.html

This can either be a warning (telling the author that their aria-checked attribute is useless on input elements that allow the checked attribute) or a violation (telling the author not to do that).

Activity

  1. added
    Bug
    on Mar 10, 2021
  2. added
    engine-rules
    on Apr 21, 2021
  3. MHoov commented on Jun 1, 2021

    @MHoov

    As of June 1

    • general rule description (SME & Dev)
    • testcases written (Dev)
    • rule developed (Dev)
    • message written (SME)
    • help written (SME)
  4. scottaohara commented on Nov 21, 2021

    @scottaohara

    ARIA in HTML (w3c/html-aria#372) is tightening the rule on use of aria-checked, particularly due to w3c/aria#1622 and the fact that aria-checked=mixed should never be able to be exposed by browsers that correctly follow the ARIA spec.

    we would request that this at the very least this be called out as an author error if using aria-checked=mixed on a checkbox.

    There is a bug in chromium now where aria-checked incorrectly takes precedent over the native checked / dirty checked state of an element, which can cause inaccurate information to be exposed if the checked state and the aria-checked attribute are out of alignment: https://bugs.chromium.org/p/chromium/issues/detail?id=1260371

  5. carmacleod commented on Nov 29, 2021

    @carmacleod
    ContributorAuthor

    @MHoov Where can I find the "general rule description (SME & Dev)" and testcases that were written as of June 1? I don't know where to look.

  6. self-assigned this
    on Dec 8, 2021
  7. aliunwala commented on Feb 7, 2022

    @aliunwala
    Contributor

    Notes from Triage Meeting:

    If aria tag "overrides" the native elements state in an AT then this should be a violation.

    According to a quick chrome test the aria tag overrides the native behavior. So we are expecting this to be a Violation.

  8. marcjohlic commented on Feb 14, 2022

    @marcjohlic
  9. shunguoy commented on Feb 14, 2022

    @shunguoy
    Contributor

    this might be expanded to a more generic case when a user explicitly specifies a role that is the same or conflicts with the implicit role.

  10. shunguoy commented on Mar 8, 2022

    @shunguoy
    Contributor

    this will be covered in #721, close as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bugdevelopmentengine-rulespriority-2 (med)reproducible

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions