View Single Post
Old 12-01-2014, 03:25 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
It depends on what the "hidden" class does. I guess you have defined it with "display: none". In that case the behaviour is not unexpected. "display: none" removes the title from the flow, so the anchor is nowhere.

I'm not sure what the spec says about this, and it seems other renderers can access anchors with "display:none", but I wouldn't rely on that.

Since the title is probably only being used to create an automatic TOC, you can remove it once the TOC has been created (and put the id in some other element). Or you can try to make sure the title is not displayed, without using "display: none" (try "visibility: hidden", plus removing all height and margins, but this is not a required property in ePub 2 renderers).
Jellby is offline   Reply With Quote