1
0
Fork 0
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:
Fred Chasen 2017-03-15 13:56:12 -04:00
parent e482494f32
commit 120e9fe8b3
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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) {