daisy/ace-gui

Getting error Via: aXe in ePub

abdulwazid1991 opened this issue · 2 comments

Capture

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

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">
...