Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARIA-compliant disabled link communication raises errors on default config #2968

Open
gorner opened this issue Aug 30, 2023 · 0 comments
Open

Comments

@gorner
Copy link

gorner commented Aug 30, 2023

Per the latest (draft) ARIA in HTML guidelines, a disabled link can be communicated in ARIA using the syntax:

<a role="link" aria-disabled="true">...</a>

with no href attribute.

(further info: https://www.scottohara.me/blog/2021/05/28/disabled-links.html; added to guidelines in w3c/html-aria#305 )

This syntax currently raises two errors with the default configuration:

  error  a tags must have an href attribute  link-href-attributes
  error  Use of redundant or invalid role: link on <a> detected.  no-redundant-role
@gorner gorner changed the title ARIA-compliant disabled link communication raises errors ARIA-compliant disabled link communication raises errors on default config Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant