therealglazou / epub31review

6 stars 0 forks source link

What to do if there are several tocs? #15

Open frivoal opened 7 years ago

frivoal commented 7 years ago

Regardless of whether we chose to use an id or the role attribute to mark the toc, authors can put several instances of it in their index.html, so we need to agree on what that means.

  1. Only the first one matters, everything else is ignored
  2. Only the last one matters, everything else is ignored
  3. "The Toc (tm)" is the union of however many toc elements there are.

I'd go with 1.

dauwhe commented 7 years ago

Right now my toy implementation does [1], just finding the first nav in index.html