06-12-2014, 11:50 PM | #1 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
|
Why do mismatched link and anchor work?
In an epub I created some numbered target IDs didn't quite match the links on the contents page because I either mistyped a digit twice or left off one of a repeated digit. However the lnks worked as intended in Calibre's editor and weren't identified as an error when I ran the check. The same thing happens in Sigil. I only dicovered the error in EPUB-Checker.
The links also work in both versions of desktop ADE, but not in FBreader. But shouldn't Calibre editor catch them as an error anyway? |
06-13-2014, 12:01 AM | #2 |
creator of calibre
Posts: 43,864
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Attach a sample demonstrating the issue.
|
Advert | |
|
06-13-2014, 12:31 AM | #3 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
|
Here it is.
|
06-13-2014, 01:00 AM | #4 |
creator of calibre
Posts: 43,864
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The editor does not currently check fragments (the part of the link after the #). As for the links working, when you click a link with an incorrect fragment, most viewers will simply take you to the top of the file linked to an ignore the incorrect fragment, that will give you the illusion of the link working, if the link destination is near the top of the file.
I will look into adding a check for fragments as well. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub iBook link-anchor | dicknskip | Sigil | 1 | 04-04-2013 01:28 AM |
Anchor in Kindle | quocsan | Kindle Formats | 4 | 10-22-2012 10:03 PM |
simple anchor link question | affa | ePub | 1 | 04-20-2011 04:29 AM |
HTML Anchor in XHTML | arreke | Sigil | 3 | 12-27-2010 01:28 PM |