One oddity with this plugin is that when an ID is referenced by an aria-labelledby, the ID is seen as unused and removable. The next step is an error message from epubcheck.
Code:
<nav epub:type="toc" role="doc-toc" aria-labelledby="toc">
<h1 id="toc">Contents</h1>
<section aria-labelledby="cont" epub:type="toc" role="doc-toc">
<hgroup>
<h1 class="FMH" id="cont">Contents</h1>
</hgroup>
Code:
OEBPS/Text/contents.xhtml 11 474 Col: 64: ERROR(RSC-005): Error while parsing file: The aria-labelledby attribute must refer to elements in the same document (target ID missing)
OEBPS/Text/nav.xhtml 10 368 Col: 59: ERROR(RSC-005): Error while parsing file: The aria-labelledby attribute must refer to elements in the same document (target ID missing)
OEBPS/Text/nav.xhtml 77 2429 Col: 54: ERROR(RSC-005): Error while parsing file: The aria-labelledby attribute must refer to elements in the same document (target ID missing)
OEBPS/Text/nav.xhtml 94 3004 Col: 78: ERROR(RSC-005): Error while parsing file: The aria-labelledby attribute must refer to elements in the same document (target ID missing))