KEMBAR78
Example of non-textual descendant concatenated label in nav elements · Issue #2477 · w3c/epub-specs · GitHub
Skip to content

Example of non-textual descendant concatenated label in nav elements #2477

@Jesse-Bakker

Description

@Jesse-Bakker

Section 7.3 The nav element: restrictions states:

The child a or span element MUST provide a non-zero-length text label after concatenation of all child content and application of white space normalization rules. When determining compliance with this requirement, the concatenated label MUST include text content contained in title or alt attributes for non-textual descendant elements.

If an a or span element contains instances of HTML embedded content [html] that do not provide intrinsic text alternatives, the element MUST also contain a title attribute with an alternate text rendering of the link label.

These rules could use an example to clarify what constitutes a valid text label in the presence of nested child elements and embedded content, like

<nav epub:type="">
   <h1>…</h1>
   <ol>
      <li>
         <a href="chap1.xhtml">
            <audio src="..."/>
            <audio src="..." title="Chapter 1"/>
         </a>
      </li>
      <li>
         <span>
             <img src="..." alt="Chapter 2"/>
         </span>
         <ol>...</ol>
      </li>
   </ol>
</nav>

Metadata

Metadata

Assignees

No one assigned

    Labels

    EPUB33Issues fixed in the EPUB 3.3 revisionSpec-EPUB3The issue affects the core EPUB 3.X RecommendationType-EditorialThe issue does not affect conformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions