View Single Post
Old 02-07-2024, 01:01 PM   #24
nabsltd
Fanatic
nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.
 
Posts: 522
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
Quote:
Originally Posted by paperwhite13 View Post
You told me to remove the id, without asking what it does, even though the index stops working without it.

Code:
Lorem ipsum <a id="_idTextAnchor005"></a> dolor sit amet
...
<p>Term<a href="part1.xhtml#_idTextAnchor005">5</a></p>
I generally remove IDs, but before I do that, I run my search for a elements where the href attribute points to a file in the EPUB. Those target elements get an attribute (one that isn't part of the HTML standard) added, then I remove the id attribute from every element that doesn't have my special attribute. Then, I remove my special attribute from every element. Since this is just 3 saved searches, it goes pretty fast.
nabsltd is offline   Reply With Quote