|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,921
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Accessibility Checker
Hi @kovidgoyal
Thanks for the latest update. I noticed the new Accessibility Checker and wanted to give it a try. The image shows a <h4> heading. This skips a level as there is no <h3> heading above it, only a <h2>. It shows an epub:type with no matching Aria role. The checker didn't pick up on either of these. Something I am misunderstanding? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,587
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The heading level checker had a bug, it didnt catch the first heading in a new html file, now fixed.
epub:type without an ARIA role: correct behaviour. epub:type="chapter" matches the role doc-chapter, but ARIA doesn't allow that role on headings, only on things like <section>. Adding it would make the markup invalid, so the checker rightly doesn't suggest it. The real problem is that chapter doesn't belong on an <h4>; it should be on the surrounding <section> or <body>. |
|
|
|
| Advert | |
|
|
|
|
#3 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,921
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
Quote:
I've checked using a <section> tag as suggested, and it captured the missing aria role. Is it expected that it does not work in reverse - have the aria role, but the epub:type is missing? |
||
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,587
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes, it is, accessibility relies on aria roles not epub:type, so the checker does not care too much about epub:type
|
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,921
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Great. Thanks!!
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Plugin] ACE - DAISY EPUB Accessibility Checker wrapper | Doitsu | Plugins | 40 | 12-10-2025 11:53 AM |
| [Editor Plugin] ACE by Daisy - EPUB Accessibility Checker | thiago.eec | Plugins | 26 | 03-27-2023 09:19 AM |
| Accessibility | BooksForABuck | News | 0 | 12-30-2004 10:37 PM |