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

Display of main article sections broken in Restricted mode for new mobile html endpoint Wikimedia ZIMs #1275

Open
Jaifroid opened this issue Aug 4, 2024 · 0 comments
Labels
bug-non-critical For bugs that it would be nice to fix rather than critical to fix upstream Issues that need to be dealt with at scraper level or some other repo
Milestone

Comments

@Jaifroid
Copy link
Member

Jaifroid commented Aug 4, 2024

For upstream issue, see openzim/mwoffliner#2074. The problem here is that in the source HTML the main article sections other than the first have the display: none; CSS style hard-coded into each <section> tag's style attribute. In ServiceWorker mode, some JS is run to remove that attribute after article load. However, in Restricted mode, no JS runs (it cannot), so the sections remain hidden and cannot be opened.

While this should be fixed upstream (in mwOffliner), we may be forced to deal with it ourselves before the next release if the issue isn't fixed in time.

@Jaifroid Jaifroid added upstream Issues that need to be dealt with at scraper level or some other repo bug-non-critical For bugs that it would be nice to fix rather than critical to fix labels Aug 4, 2024
@Jaifroid Jaifroid added this to the v4.2 milestone Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-non-critical For bugs that it would be nice to fix rather than critical to fix upstream Issues that need to be dealt with at scraper level or some other repo
Projects
None yet
Development

No branches or pull requests

1 participant