You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when we inject our own styles and scripts, we do it with regexes to locate the <html tags, so you get false positives in this case. Ideally we would use a proper HTML parser, but we decided to stay as close to the original source as possible when we modify it.
This is unlikely the core maintainers will tackle this fringe issue, but we would welcome a contribution to fix it. Maybe with a more complex regex you could handle that.
I'll keep the issue opened but like I said, it's unlikely I will tackle this anytime soon. So a contribution is most welcome!
mickael-menu
changed the title
TestApp: The book is not browsable
HTML injection fails if the resource contains a commented-out <html> tag
Oct 27, 2023
Bug Report
The book is not browsable in any way
What happened?
The book is opened, the first page with the cover is displayed, but:
Expected behavior
Change page or jump to a specific chapter.
How to reproduce?
Open the attached sample book
Environment
Development environment
Testing device
Additional context
bc40f3213719eae78585313877e66a9e4e3678.epub.zip
The text was updated successfully, but these errors were encountered: