-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
navigator.epubReadingSystem injected in EPUB content documents with delay #41
Comments
I have pushed a branch with a solution to this: |
Thanks! On Monday, July 14, 2014, Juan Corona notifications@github.com wrote:
|
@danielweck I'll see if I can pass along an actual instance before the iframe document is written to. (And how something like this behaves across multiple browser engines.) |
It looks like by just simply doing
Achieves just that. |
That would be great! |
I am wondering whether the document.open()+write() approach has an impact on "programmatic fetching" (document / file Blobs, etc.) See readium/readium-js#54 |
I believe it will.. It calls the basic iframe loader's If the document.open()+write() approach is found to work on both loaders then we should refactor them to use the same approach. |
I tried a similar approach – albeit not using document.open() + write() – to inject JavaScript before the page's JavaScript is executed and faced a problem when changing the spine item in fixed layout books. The first time we set the href of the iframe it worked properly but the second time (next spine item), my JavaScript wasn't executed. I had to recreate a new iframe for each chapter for the solution to work, but it introduced other bugs in the layout when rotating the screen. It seems very similar to the issue Juan talked about on the mailing-list, in the mail entitled "[AppJS] Readium + MathJax & Iframe injection":
Did you check if the epubReadingSystem was still available when changing the spine item in a fixed-layout? |
I remember having conversations with Boris about the pitfalls of "iframe On Wednesday, July 16, 2014, Mickaël Menu notifications@github.com wrote:
|
As verified by @aadamowski, document.write() breaks XML namespaces, see: |
Fixed in |
Originally posted by @codingisacopingstrategy
at
readium/readium-js-viewer#13
The text was updated successfully, but these errors were encountered: