Skip to content
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

Programmatic fetch: works with SVG spine items? (cloud reader with zipped EPUB or obfuscated fonts) #77

Open
danielweck opened this issue Sep 15, 2014 · 0 comments

Comments

@danielweck
Copy link
Member

I have not tested this, but judging by the code it seems that outerHTML would be called on a SVGDocument instance:

https://github.com/readium/readium-js/blob/develop/epub-modules/epub-fetch/src/models/markup_parser.js#L17

new window.DOMParser().parseFromString(" ... ", "image/svg+xml");

https://github.com/readium/readium-js/blob/develop/epub-modules/epub-fetch/src/models/iframe_zip_loader.js#L41

SVGDOM.documentElement.outerHTML

This may not be supported in all of Readium's target web browsers. To verify.

Maybe:

new XMLSerializer().serializeToString(DOM)
@danielweck danielweck added this to the v1+ milestone Sep 15, 2014
@danielweck danielweck modified the milestones: m1.1, v1-iOS Sep 19, 2014
@rkwright rkwright removed this from the m1.1 milestone May 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants