Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarification of role attr #4

Open
TzviyaSiegman opened this issue Feb 3, 2016 · 2 comments
Open

clarification of role attr #4

TzviyaSiegman opened this issue Feb 3, 2016 · 2 comments

Comments

@TzviyaSiegman
Copy link

The role attribute is "to annotate markup languages with machine-extractable semantic information about the purpose of an element." (https://www.w3.org/TR/role-attribute/). This means that it provides specific information about the element to which it is applied. In the collections example

 <ol role="doc-index">
, this implies that the
    is in fact the index. role="doc-index" should be applied to the index itself, not something that links to the index. The authors of the DPUB-ARIA spec might want to consider nesting doc-toc or allowing something akin to the EPUB 2 element with a title or label. Would this suffice?
@dauwhe
Copy link
Owner

dauwhe commented Feb 4, 2016

I've removed role="doc-index" and added an inline issue. Thanks!

@dauwhe
Copy link
Owner

dauwhe commented Feb 4, 2016

The rel attribute describes the "relationship between the document containing the hyperlink and the destination resource." Which makes me think about using dpub-aria role values in rel, as a way of describing the semantics of the destination.

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

No branches or pull requests

2 participants