ePubs does not validate due to references to images

Jan Ulrich Hasecke avatarJan Ulrich Hasecke created an issue

epubcheck 3.0.1 throws errors validating Sphinx epubs, because images are referenced, which seems to be not allowed

This is code generated by Sphinx 1.2b3:

<a class="reference internal image-reference" href="_images/sphinx-logo.png"><img alt="_images/sphinx-logo.png" src="_images/sphinx-logo.png" style="width: 160.0px;" />

is causing this error:

ERROR: ../../_build/epub/Sphinx.epub/abbildungen.html(48,78): hyperlink to non-standard resource '_images/sphinx-logo.png' of type 'image/png'

While this code produced by another tool validates without errors.

<img alt=" " src="images/images.png" width="600" height="734" />

It seems to me that the href-tag should not be included in the code.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.