Quote:
Originally Posted by wolf123
Is it OK to overload (add multiple values in) epub:type?
|
No, you can use multiple values for
epub:type:
Quote:
The epub:type attribute inflects semantics on the element on which it appears. Its value is one or more white space-separated terms stemming from external vocabularies associated with the document instance, as defined in Vocabulary Association.
|
Source
For instance, you can use multiple values to define Document Partition and Section, like these examples:
Code:
<section epub:type="frontmatter preface" role="doc-preface">...</section>
<section epub:type="backmatter colophon" role="doc-colophon">...</section>
The order is not important either for epub:type values.
Quote:
Originally Posted by wolf123
|
Like the link you pointed clearly says: you must not overload the aria roles. Only use one value. A second value can only be used as fallback, since only the first value is recognized.
So, you would have to detect multiple values for
epub:type and use only the appropriate one while mapping to aria roles. Usually, only one of the
epub:type values has a corresponding aria role.