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:
commit
d52dc90454
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ class Navigation {
|
||||||
parentNode = item.parentNode,
|
parentNode = item.parentNode,
|
||||||
parent;
|
parent;
|
||||||
|
|
||||||
if(parentNode && parentNode.nodeName === "navPoint") {
|
if(parentNode && (parentNode.nodeName === "navPoint" || parentNode.nodeName.split(':').slice(-1)[0] === "navPoint")) {
|
||||||
parent = parentNode.getAttribute("id");
|
parent = parentNode.getAttribute("id");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue