Internal hyperlinks to anchors in ePub do not work
Some ePub books contain a table of contents or other hyperlinks between pages. If the hyperlink goes to a page then it works. If the hyperlink goes to an anchor then it fails to load.
Steps to recreate:
- Find a book with a nested table of contents (chapters and headings)
- Click a hyperlink to an anchor (
epub:///OPS/c01.xhtml#s1etc) not just a hyperlink to a page
(Seen in "101 Design Methods" and "About Face" from a Humble eBook Bundle, but the public domain https://www.gutenberg.org/ebooks/43402?msg=welcome_stranger seems to exhibit the same behaviour)
Expected behaviour: Preview jumps to the correct page, and the correct point in that page.
- Cross-page link
- Cross-page anchor links
Intra-page link(works after fixing #8 (closed), so must be something different between page-relative and absolute anchor links)
#anchorfails (see #8 (closed) - hopefully it'll be the same as cross-page anchor links once it's fixed)
Once this is fixed it should (hopefully) fix gnome-books#24