1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Merge pull request #853 from nielslanting/patch-3

Parse nxcItem with namespace
This commit is contained in:
Fred Chasen 2018-10-22 16:11:47 -07:00 committed by GitHub
commit d52dc90454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,7 +296,7 @@ class Navigation {
parentNode = item.parentNode,
parent;
if(parentNode && parentNode.nodeName === "navPoint") {
if(parentNode && (parentNode.nodeName === "navPoint" || parentNode.nodeName.split(':').slice(-1)[0] === "navPoint")) {
parent = parentNode.getAttribute("id");
}