Skip to content

Add support for dpub-aria in HTML output #32

Open

Description

@link2xt

See jgm/pandoc#4213

There is no benefit yet, and Text::Amuse HTML output is not going to be processed by machine probably (there is a .muse source available, after all), but it might improve accessibility and help search engines index HTML output.

Activity

  1. melmothx commented on Dec 30, 2017

    @melmothx
    Owner

    Agreed, not a big deal and totally worth the effort.

  2. melmothx commented on Dec 31, 2017

    @melmothx
    Owner

    Actually, this is a no-go. Validation barfs everywhere.

    https://validator.w3.org/
    there is no attribute "role"

      <h2 id="toc2" role="doc-part">Prova 2</h2>
    

    http://validator.idpf.org/

    Error while parsing file 'attribute "role" not allowed here; expected attribute "class", "dir", "lang", "style", "title" or "xml:lang"'.

  3. link2xt commented on Dec 31, 2017

    @link2xt
    ContributorAuthor

    I think "role" should be attached to "section", "aside", "p" etc., something that actually holds contents, not h1, h2, ...

    See https://stackoverflow.com/questions/4170356/what-values-can-the-html5-xhtml-role-attribute-have
    Formal specification of HTML5 explicitly permits it: https://w3c.github.io/html/dom.html#wai-aria

  4. melmothx commented on Dec 31, 2017

    @melmothx
    Owner

    Well, the problem is that the HTML in the epub (version 2) is XHTML strict, not HTML5. Matter needs to be digged.

  5. melmothx commented on Jan 1, 2018

    @melmothx
    Owner

    as far as I can see, EPUB would need to migrate to 3.0 (with extra steps for backcompat) and HTML to HTML5.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions