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

ePub file containing epub:type="referrer" attribute passes validation #713

Closed
LeoRC opened this issue Nov 12, 2016 · 2 comments
Closed

ePub file containing epub:type="referrer" attribute passes validation #713

LeoRC opened this issue Nov 12, 2016 · 2 comments
Labels
spec: EDUPUB Impacting the support of the EDUPUB specification

Comments

@LeoRC
Copy link

LeoRC commented Nov 12, 2016

I have an ePub document which contains the attribute epub:type="referrer" (in several places). This document validates under EpubCheck 4.0.1 ("No errors or warnings detected. EPUB is valid!") as an EPUB 3.0.1 document. referrer is one of the properties defined in the current EPUB for Education Structural Semantics. That document states that

The semantic terms defined in this document are all included in in the EPUB Structural Semantics Vocabulary [StructureVocab] and available for use in the epub:type attribute [ContentDocs301].

But despite this, referrer is one of the few properties (perhaps the only one?) in the EPUB for Education Structural Semantics which does not appear in the current (5 October 2016) version of the EPUB 3 Structural Semantics Vocabulary, not even marked as DRAFT. So are documents containing epub:type="referrer" not valid EPUB 3.0.1 documents, and is it a bug for EpubCheck 4.0.1 to validate them as such? It certainly refuses to validate documents which contain other properties which don't appear in the default vocabulary.

(Here are some example ePubs: one contains an epub:type="referrer" attribute in an appropriate place, one replaces referrer with backlink, one replaces it with a property not in either vocabulary, and one drops the attribute completely. Only the first and last validate under EpubCheck 4.0.1. samples.zip)

@mattgarrish
Copy link
Member

There was a draft property named referrer, but was changed to backlink during the process of creating the DPUB-ARIA vocabulary.

The change has to be made to the edupub spec, too, but as that work is on hiatus at the moment we haven't had an opportunity to do it.

Epubcheck won't validate backlink until it gets updated to reflect the changes made during the 3.1 revision. It is the correct term to be using moving forward, though.

@tofi86 tofi86 added epub-3.1 spec: EDUPUB Impacting the support of the EDUPUB specification labels Dec 29, 2016
@mattgarrish
Copy link
Member

As with #531 and #714, 3.2 drops validation of epub:type, so these particular issues are no longer applicable. Issue needs closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec: EDUPUB Impacting the support of the EDUPUB specification
Projects
None yet
Development

No branches or pull requests

4 participants