We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 228d991 + 32afb79 commit 5c61014Copy full SHA for 5c61014
src/packaging.js
@@ -167,6 +167,7 @@ class Packaging {
167
// var manifestPropArray = manifestProps.length ? manifestProps.split(" ") : [];
168
169
var itemref = {
170
+ "id" : item.getAttribute("id"),
171
"idref" : idref,
172
"linear" : item.getAttribute("linear") || "yes",
173
"properties" : propArray,
src/spine.js
@@ -51,7 +51,7 @@ class Spine {
51
var spineItem;
52
53
item.index = index;
54
- item.cfiBase = this.epubcfi.generateChapterComponent(this.spineNodeIndex, item.index, item.idref);
+ item.cfiBase = this.epubcfi.generateChapterComponent(this.spineNodeIndex, item.index, item.id);
55
56
if (item.href) {
57
item.url = resolver(item.href, true);
0 commit comments