Validator gives error on “href” attribute in manifest item for remote resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| calibre |
Undecided
|
Unassigned |
Bug Description
Hi,
I know that you don't guarantee that an EPUB produced by Calibre is valid (http://
Remote audio and video resources have to be included in the manifest as a separate item element, which according to the epub3 specifications require a “href” attribute.
The validator, however, marks the entry with the use of “href“ as an error while the use of “src“ seems to be valid. Unfortunately some reading software also accepts “src” and also the well-known “PUB 3 Best Practices by Matt Garrish and Markus Gylling” wrongly use “src“ in their example. So many people might also try using “src” and are assured by calibres validation and then wonder why the resources are not found by some devices.
semelina (semelina) wrote : | #2 |
Sorry, but I was not aware of that and suddenly I'm very glad my epub3 file turned out so well at all.
I was asking that the validator does not mark the use of “href” and an url in the manifest as an error. Or at least that the same error should occur for the use of “src” so that the user is not lead to believe that that is correct.
Or maybe just include the note in the validator output messages that you do not support epub3. I really had not noticed that until now.
Kovid Goyal (kovid) wrote : | #3 |
what validator are you refering to? The Check Book function in the
editor, that is not a validator. That checks your book for things
that are likely to not work on most reader devices. And using remote video
resources most definitely is likely to not work.
Also, having href on manifest items (I ssume you meam <item> tags) is
perfectly valid. The problem is having hrefs that refer to resources not
inside the book, which is what the error message states "A file listed
in the manifest is missing, you should either remove it from the
manifest or add the missing file to the book"
status invalid
Changed in calibre: | |
status: | Incomplete → Invalid |
semelina (semelina) wrote : | #4 |
Yes, I was referring to the Check Book tool, which did look a lot like a validator to me. Sorry if I got that wrong.
As for the check: I was just confused because there was no error message for the <item> tag when used with “src” and a url even if the specified resource was outside the book.
What if the Check Book tool would mark a missing “href” attribute inside an <item> tag as an error? That would help a lot and not just for remote resources.
Thanks for the fast replies and the generally awesome epub editor you included in calibre.
Kovid Goyal (kovid) wrote : | #5 |
Sure, adding a check for a missing href is no problem.
Kovid Goyal (kovid) wrote : Fixed in master | #6 |
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased
Changed in calibre: | |
status: | Invalid → Fix Released |
I'm not sure what you're asking me. calibre does not support EPUB 3 in
any form whatsoever. audio and video resources, whether local or remote
are EPUB 3. So what exactly are you asking for?
status incomplete