Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@deborahgu
Copy link
Contributor

Epub accessibility checkers require that all epub:type rules which have corresponding ARIA roles use both. The ebooklib serializer for the nav element doesn't provide any entry point to manually add the doc-toc role. This change programmatically adds role="doc-type" to the nav at the same point at which epub:type="toc" is added.
References:

Epub accessibility checkers require that all epub:type rules which have corresponding ARIA roles use both. The ebooklib serializer for the nav element doesn't provide any entry point to manually add the `doc-toc` role. This change programmatically adds `role="doc-type"` to the nav at the same point at which `epub:type="toc"` is added.
References:
* [The EPUB-specific rules at the DAISY Ace epub accessibility checker](https://daisy.github.io/ace/rules/epub/)
* [doc-toc role in the Digital publishing WAI-ARIA module 1.0](https://www.w3.org/TR/dpub-aria-1.0/#doc-toc)
@aerkalov aerkalov merged commit 855ae48 into aerkalov:master May 29, 2018
@aerkalov
Copy link
Owner

Thanks for this. Also thanks for the references, I was not aware of Ace epub accessibility checker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants