View Single Post
Old 05-01-2014, 08:24 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Inline TOC makes a lot of ID= tags

Code:
<ul class="level2">
        <li><a href="text/the_text.xhtml#u3dafb0a3-e4f3-4ce0-a10e-c333cb0e7178">Chapter 01 heading</a>

            <ul class="level3">
              <li><a href="text/the_text.xhtml#u718b5b2d-8977-4a91-bad9-40e70179b583">Topic 01.01 heading</a></li>
              <li><a href="text/the_text.xhtml#u55fec99b-4e1f-4364-9825-2573328a698c">Topic 01.02 heading</a></li>
              <li><a href="text/the_text.xhtml#u1056602a-62da-4b26-bcaa-7b939c5fbdaa">Topic 01.03 heading</a></li>
            </ul>
If I have a simple (hopefully clean) epub (test-toc2.epub) and generate an inline TOC (test-toc2-after.epub), it seems like the <li> lines all have an ID.

It doesn't seem to hurt anything and I RegEx them out, but

Q1 - Do they serve any purpose that I'm not aware of?
Q2 - Kovid -- would it be possible to avoid generating them ... please? I personally prefer a very clean epub since I'm old and get confused easily

Thanks
Attached Files
File Type: epub test-toc2.epub (398.7 KB, 199 views)
File Type: epub test-toc2-after.epub (400.2 KB, 189 views)

Last edited by phossler; 05-01-2014 at 08:26 PM.
phossler is offline   Reply With Quote