Display of main article sections broken in Restricted mode for new mobile html endpoint Wikimedia ZIMs #1275
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
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'sstyle
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.
The text was updated successfully, but these errors were encountered: