hectorqin / hectorqin/reader

阅读epub时,iframe和解析模式的bug

Open
#636 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
11k
Forks
5.5k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug 描述你遇到的问题
阅读epub时,iframe和解析模式的bug

To Reproduce 如何重现问题

  1. 将epub解析设置成iframe模式
  2. 显示为这样(标题和图片重叠,字体样式有问题)
    Image
    3.shitf+f5忽略缓存刷新后,将epub解析设置为解析模式
    4.显示正常
    Image
    5.点击下一章或者刷新页面后,格式错乱(之后无论怎么刷新或者切换解析模式都是错乱的)
    Image
    6.将epub解析再次设置为iframe模式,shitf+f5忽略缓存刷新,之后再将epub解析设置为解析模式。显示正常
    但是点击下一章或者刷新页面后还是格式错乱
    结论:只有将epub解析设置成iframe模式后shitf+f5忽略缓存刷新,再设置成解析模式,才能出现一次正常显示的页面,之后无论点击下一章还是刷新页面都是错乱的,需要重复此步骤才能再次正常显示

Expected behavior 期待修复的效果
设置成解析模式时无论点击下一章还是刷新页面都正常显示

版本说明

  • OS: LINUX
  • Deploy Method: docker
  • Program Version : v3.2.12
  • Browser : chrome浏览器(https访问)

Additional context 其他说明
epub文件(下载后解压):
epub文件.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the attached EPUB and reproduce the issue in Chrome with the iframe and parsing modes, including switching chapters and refreshing after changing modes. Compare the rendering across those steps; the work is done when parsing mode stays correctly formatted after navigation and refresh without a cache-bypassing reload.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.