Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Getting error Via: aXe in ePub #145

Open
abdulwazid1991 opened this issue Sep 10, 2021 · 2 comments
Open

Getting error Via: aXe in ePub #145

abdulwazid1991 opened this issue Sep 10, 2021 · 2 comments

Comments

@abdulwazid1991
Copy link

Capture

I am Getting 3 errors via: Axe in ePub please guide how to solve them.

@clapierre
Copy link

clapierre commented Sep 10, 2021

Hello @abdulwazid1991
like the issues states you need to add the missing roles to your <nav> elements
role="doc-toc" and role="doc-pagelist" and when you have more than 1 nav element in the same xhtml file you must uniquely label them.
like

<nav epub:type="toc" role="doc-toc" aria-labelledby="htoc">
<h1 id="htoc">Table of Contents</h1>
...
<nav epub:type="page-list" role="pagelist" aria-labelledby="hpglst">
<h1 id="hpglst">Page List</h1>
...
etc.

or 

<nav epub:type="toc" role="doc-toc" aria-label="Table of Contents">
...
<nav epub:type="page-list" role="pagelist" aria-label="Page List">
...

@clapierre
Copy link

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

No branches or pull requests

2 participants