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

Footnotes are assigned a now deprecated ARIA role (doc-endnote) #8030

Closed
batpigandme opened this issue Apr 21, 2022 · 1 comment
Closed

Footnotes are assigned a now deprecated ARIA role (doc-endnote) #8030

batpigandme opened this issue Apr 21, 2022 · 1 comment
Labels

Comments

@batpigandme
Copy link

Currently, footnote items are assigned role="doc-endnote", e.g.

<li id="fn1" role="doc-endnote">

Added with the WAI-ARIA endnotes roles here b062117, the role for individual footnote items, role="doc-endnote" has now been deprecated.

doc-endnote was deprecated in DPUB-ARIA 1.1, so this errors on the assertion that ARIA roles used must conform to valid values (e.g. using axe accessibility checker).

The link above describes the superseding behavior—i.e. that doc-endnotes identifies the containing section as being endnotes (as is already done in pandoc), and then native <li>, or list or listitem roles should be used within (also already done).

I think, then, the fix would just entail no longer adding the role here:

customAttribute "role" "doc-endnote"

Reproducible example:

Can be reproduced with, e.g. the following as input.txt:

---
title: "Title"
---

This is a sentence.[^1]

[^1]: This is a footnote.

and pandoc -s -o output.html input.txt.

pandoc 2.18 on macOS 12.3.1 (or same example run in pandoc try)

@batpigandme
Copy link
Author

Thanks so much for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant