Skip to content

Duplicates requirements of Selectors #2521

@annevk

Description

@annevk
Member

Describe your concern

This requirement

If a CSS selector includes a WAI-ARIA attribute (e.g.,
input[aria-invalid="true"]
), user agents MUST update the visual display of any elements matching (or no longer matching) the selector any time the attribute is added/changed/removed in the DOM.

duplicates an existing requirement. We should not duplicate requirements like that as it will lead to people being confused. If ARIA has to call it out, why doesn't SVG have to call it out or MathML? Does that mean an invalid attribute cannot be matched?

We should only require things once, even across specifications.

Link to the version of the specification or documentation you were looking at at.

Link to documentation: https://w3c.github.io/aria/#ua_noninterference and https://w3c.github.io/aria/#document-handling_css-selectors

Does the issue exists in the editors draft (the editors draft is the most recent draft of the specification)?

Yes.

Activity

pkra

pkra commented on May 8, 2025

@pkra
Member

duplicates an existing requirement.

Could you point to a good location to point to so we can replace these?

(FWIW, git history says the two relevant sections have not seen significant change in 10 and 6 years respectively.)

annevk

annevk commented on May 9, 2025

@annevk
MemberAuthor

I'm not sure what you mean. I don't think you have to point anywhere.

pkra

pkra commented on May 9, 2025

@pkra
Member

Thanks for following up @annevk. I may have misunderstood then. I thought the issue was that ARIA was specifying something that is already specified elsewhere.

Is it just about the duplication within ARIA?

annevk

annevk commented on May 9, 2025

@annevk
MemberAuthor

No it is specified elsewhere (mainly Selectors and CSS). Therefore it can be removed from ARIA.

added a commit that references this issue on May 10, 2025
2d13c7e
linked a pull request that will close this issue on May 10, 2025
moved this from Agenda+ to Todo in ARIA Editorson May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @pkra@annevk

    Issue actions

      Duplicates requirements of Selectors · Issue #2521 · w3c/aria