-
Notifications
You must be signed in to change notification settings - Fork 22
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
Unique role rule fires when aria-labelledby points to unique elements. #303
Comments
Thanks for the report, and the thorough inspection of your content! Would it be possible to share an EPUB to help us reproduce the error? |
EPUB and DAISY Ace report: https://koganpage.box.com/s/q9gif8e4r2cov8odssmqg8q909a35gb8. |
Thank you for sharing the EPUB! I am getting the same report:
|
I reviewed the EPUB, and I don’t think the report is erroneous. The uniqueness rule applies to the landmarks’ accessible name. In other words, it’s not the labelling element that should be unique, but its content. The idea is that a screen reader can expose a list of landmark titles to the user, for quick navigation. If all these titles are identical, the user doesn’t know where to navigate. In the shared EPUB, many landmarks end up having the same accessible name. For instance, in <aside id="ch01_sec_003" class="tip" aria-labelledby="ch01_h1_003" role="complementary">
<p id="ch01_h1_003" class="title" epub:type="title">Words of wisdom</p> and line 29: <aside id="ch01_sec_005" class="tip" aria-labelledby="ch01_h1_005" role="complementary">
<p id="ch01_h1_005" class="title" epub:type="title">Words of wisdom</p> Even if both Possible solutions can be:
Note that from a recent screen reader usage survey by WebAIM, even though under 3% of users prefer landmarks-based navigation to headings-based navigation, some 26% of screen reader users do navigate by landmarks often when they're available, and 56% sometimes. This survey is primarily about the Web, so I don’t know to which extent it can be extrapolated to ebooks, but still. For this reason, I wouldn't particularly recommend the first option (even if it might meet some level of WCAG conformance, it's not the most accessible). |
My apologies for the false alarm — you are right, the aria-labelledby text for the landmarks is not unique in our EPUB. I thought it was when I posted the issue, but I hadn't checked carefully enough. |
No problem, you're welcome :-) |
Please provide the following details if possible or relevant:
ace -v
command).node -v
command).--verbose
option).Here is a snippet from the error output in the JSON report:
However:
role="complementary"
have anaria-labelledby
attributearia-labelledby
attributes point to different elementsaria-labelledby
elements is uniqueI conclude that DAISY Ace is erroneously raising this issue; perhaps it isn't processing the
aria-labelledby
attributes as though it were atitle
oraria-label
?The text was updated successfully, but these errors were encountered: