futurepress / epub.js

Enhanced eBooks in the browser.
http://futurepress.org
Other
6.39k stars 1.09k forks source link

Issue opening a new book #592

Open alexejmilstein opened 7 years ago

alexejmilstein commented 7 years ago

When I first open a book it works fine. However, when going back to select a new book (from an input file element), it gives an:

Could not load Chapter: titlepage.xhtml DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

I tried closing the book with book.destroy() and also I clear the input element with .value = null. What am I doing wrong? Thanks a lot.

nmolinaca commented 7 years ago

Did you solve this issue? im on this issue but when i try to open a new book i get this error: book.js:1413 Error: No Document Available at EPUBJS.Render.Iframe.load (render_iframe.js:98) at EPUBJS.Renderer.load (renderer.js:172) at EPUBJS.Renderer. (renderer.js:148) at tryCatch (-internal.js:215) at invokeCallback (-internal.js:230) at publish (-internal.js:198) at MutationObserver.flush (asap.js:83)