Skip to content

Commit

Permalink
Merge pull request #826 from christianmemije/fixFindNcxPath
Browse files Browse the repository at this point in the history
Use querySelector instead of getElementById on manifest node
  • Loading branch information
fchasen authored Sep 20, 2018
2 parents 259a6c0 + 5d84819 commit edf3f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class Packaging {
tocId = spineNode.getAttribute("toc");
if(tocId) {
// node = manifestNode.querySelector("item[id='" + tocId + "']");
node = manifestNode.getElementById(tocId);
node = manifestNode.querySelector(`#${tocId}`);
}
}

Expand Down

0 comments on commit edf3f2e

Please sign in to comment.