Open mbret opened 3 years ago
Can you share your code and xhtml document so I can replicate this error locally? Then I can try to figure out what's going on.
Sure I will try to create a snippet with iframe to showcase the issue and update this ticket 👍
Hello, I am trying to use this library with iframe but I get a crash error when passing the iframe document to the
resolve
functionBasically the
undefined
is expected to be astring
here.textarea.value
return "" when created on the main page document but it looks like when creating with the iframe document it will beundefined
.Is that a specific behavior from iframe ? Is there a way to workaround ?
One thing to note is that the content in the iframe is an epub document and so is an xhtml page. Maybe the spec of xhtml define
undefined
instead of""
when a value has not been set yet or something ?