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

Meta: dfn elements made interactive by html-dfn.js aren't keyboard accessible #9813

Open
not-my-profile opened this issue Sep 29, 2023 · 0 comments

Comments

@not-my-profile
Copy link
Contributor

not-my-profile commented Sep 29, 2023

html-dfn.js was apparently forked from resources.whatwg.org/dfn.js, which was removed in whatwg/whatwg.org@4a772bd, so the other specs now use Bikeshed's built-in definition feature.

And Bikeshed indeed makes its dfn elements keyboard accessible, see e.g. the Node tree section of the DOM spec, pressing Tab twice there focuses Nodes because it's marked up as:

<dfn class="dfn-paneled has-dfn-panel" data-dfn-type="dfn" data-export="" id="concept-node"
   role="button" aria-expanded="false" tabindex="0">Nodes</dfn>

If you try the same in the HTML spec, it doesn't work because the markup of the dfn elements isn't changed, e.g:

<dfn id="reconsume">reconsume</dfn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants
@not-my-profile and others