Mobileread
"fragment identifier is not defined" question
#1  eBooked 07-21-2022, 07:15 PM
Hi, All,

I just ran a revised ePub file through pagina ePub Checker which alerted me to a "fragment identifier is not defined" error and cited the exact line of the error.

When I open the ePub file to that location in SIGIL, I see the following code:

<p class="ind" id="chap5_ft2"><a id="chap5_ftg"></a>Although he was then still largely unknown...

Based on that information, I'm wondering if anyone reading this can suggest a way to correct the problematic code?

Thanks!
Reply 

#2  Quoth 07-22-2022, 09:06 AM
There is no content on the hyperlink which has a bookmark/anchor
Quote
<a id="chap5_ftg"></a>
Serves no useful purpose as the p tag has an id anyway.
Reply 

#3  JSWolf 07-22-2022, 09:38 AM
I find in most cases, the IDs overall have no use. I don't know why so many are put int he eBooks when they have no use,
Reply 

#4  jhowell 07-22-2022, 11:40 AM
I don’t see anything in the html that would result in the reported error. Are you sure it is an “id” and not an “href” attribute in the “a” element?
Reply 

#5  eBooked 07-22-2022, 06:07 PM
Quote jhowell
I don’t see anything in the html that would result in the reported error. Are you sure it is an “id” and not an “href” attribute in the “a” element?
The specific code as written clears ePub check without an issue in the original pre-revised ePub. However, it may be of consequence that in the revised version of the ePub that generated the error, I removed a footnote from the eBook, and then moved a second footnote "up" to where the removed footnote had been.

The line of code that ePub check flagged appears at the beginning of the paragraph in the eBook that includes the footnoted text for the second footnote, that is, the footnote that I didn't delete, but merely moved up to replace the other footnote that I deleted. If that's not too confusing, perhaps it reveals a clue as to why ePub checker lets the code pass in the original doc, but flags it for attention in the second, revised version of the same eBook.

Thanks!
Reply 

Today's Posts | Search this Thread | Login | Register