kiwix-js
kiwix-js copied to clipboard
Display of main article sections broken in Restricted mode for new mobile html endpoint Wikimedia ZIMs
For upstream issue, see https://github.com/openzim/mwoffliner/issues/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.