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

Accessibility error: Attribute cdts-exitscript-disabled not allowed on element a at this point #1094

Open
j-paquette opened this issue Feb 5, 2024 · 0 comments
Assignees

Comments

@j-paquette
Copy link
Contributor

Found this when validating the generated exitscript html in W3C: Nu HTML Checker (https://validator.w3.org/nu/#textarea).
It returned the following error:

Attribute cdts-exitscript-disabled not allowed(https://html.spec.whatwg.org/multipage/#the-a-element) on [a] element a at this point

The accessibility rule explains that:
if a link needs to be programatically communicated as disabled, remove the href attribute (https://w3c.github.io/html-aria/#el-a)
For more details about the accessibility rules for a-tags, check here:
https://w3c.github.io/html-aria/#example-communicate-a-disabled-link-with-aria
https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element

This fix will be included as part of a future release.

@j-paquette j-paquette self-assigned this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant