Open jmcglone opened 6 years ago
Note: we can solve this inside cozy-sun-bear with hooks. Vaguely:
this._rendition.on("rendered", function(section, view) {
var index = this._book.navigation.tocByHref[section.href];
var label = this._book.toc[index].label;
view.iframe.setAttribute("title", label);
}).bind(this);
...and taking into account when this section is not found in the table-of-contents.
@jmcglone - should the title
have a particular prefix? Contents of 4 From Sermon to Scripture?
<iframe id="epubjs-view-f834724f-c9f5-4b2e-b4c6-e87254fe0b2e" scrolling="no" style="overflow: hidden; border: medium none; visibility: visible; width: 1668px; height: 270px;" srcdoc="<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
title
attributerole=main
to theiframe
elementFix any of the following: