mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Fix Core childNodes function to use passed element, not parent element
This commit is contained in:
parent
e482494f32
commit
120e9fe8b3
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "epubjs",
|
||||
"version": "0.3.17",
|
||||
"version": "0.3.18",
|
||||
"description": "Parse and Render Epubs",
|
||||
"main": "lib/index.js",
|
||||
"jsnext:main": "src/index.js",
|
||||
|
|
|
@ -469,7 +469,7 @@ export function querySelectorByType(html, element, type){
|
|||
|
||||
export function findChildren(el) {
|
||||
var result = [];
|
||||
var childNodes = el.parentNode.childNodes;
|
||||
var childNodes = el.childNodes;
|
||||
for (var i = 0; i < childNodes.length; i++) {
|
||||
let node = childNodes[i];
|
||||
if (node.nodeType === 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue