View Single Post
Old 08-18-2020, 10:25 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Kevin - I think that's a glitch on the forum rendering, it drop spaces into long strings.
I did not know that. So it just happened to mess up rendering the ids on my screen.

Hmm... the only other things I can think of are:

1. Javascript is only supported in epub3 but your code above uses an epub2- style Doctype and not an epub3 Doctype

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
vs

Code:
<!DOCTYPE html>
2. Perhaps Readium like Sigil has a enable and disable javascript setting?

Either way, this code works properly on Sigil (once the enable javascript is set in Preferences before the epub3 is loaded) and once the proper DOCTYPE is used.

So Perhaps you should be asking this on a Readium support forum. Both Readium and Sigil are both Chrome browser engine based so if it works on Sigil it should work on Readium.
KevinH is offline   Reply With Quote