-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Ensure all details-summary tags have the open attribute #962
Comments
@Jaifroid What goes wrong exactly from a user point-of-view? In which file this is visible? |
It's in all recent files I've tested (of the "maxi" type), but the one illustrated above as an example is From the user's perspective, it's visually inconsistent and disorientating to have primary headings closed while secondary headings (containing detail) are open. It's very confusing. Just look at screenshot above. Why are "Definitions" and "History" closed, while "Sources of Knowledge" is open? A user might not even think to click on those headings to open them, just assuming they are titles with no content. The above issue affects all clients. But a serious problem is that, for clients that do not run JS-in-the-ZIM, it is impossible to jump to endnotes / references unless the user scrolls down to the references, opens the section, and then scrolls back up to the footnote... |
@Jaifroid Thx, do you have an example of article where this is wrong? It is important to have a concrete and detailed example of what is wrong to (1) been able to reproduce the problem (2) check that the problem is fixed. |
Yes, the example given above: |
See also #952 |
@ISNIT0 What is your feedback on this? It seems to me if the problem is confirmed that the section collapsing system is still and again broken. Looks like a regression here? |
@Jaifroid I think my comment here (#838 (comment)) relates to this issue. @kelson42 This is not related to the recent issues with section collapsing |
@ISNIT0 Yes, the main effect is in readers that do not render JS-from-the-ZIM. However, there is the broader issue that the details tags are inconsistently marked as open. Lower ones (h3, h4) have the open attribute, while higher ones (h2) don't, and that seems inconsistent regardless of how subsequent rendering is applied. Just marking them all consistently as open, and then closing any that you need to in JS would IMHO be the way to fix this. |
This was a design decision (albeit flawed). Thanks for reporting the issue, we'll get a fix done asap |
Looking at
wikipedia_en_history_maxi_2019-08.zim
, there is inconsistency in the application of theopen
attribute on thedetails
tag. Details corresponding to anh3
, orh4
tag have theopen
attribute in the source html, but sections corresponding to anh2
tag have noopen
attribute. For clients that do not run any included JavaScript (and cannot do so), it results in what you see in the screenshots below. This is problematic because, for example, endnotes won't work if the corresponding references section is closed. It also seems very odd to have top-level sections closed while more detailed sections are open.Here also is sample HTML from the same page to show the issue in code. The solution is simply ensuring that
details
sections corresponding toh2
tags have theopen
attribute.HTML (unprocessed source html as extracted from above ZIM, with cuts at
...
):Screenshots on clients that do not process JavaScript (Kiwix JS in jQuery mode):
Originally posted by @Jaifroid in #838 (comment)
The text was updated successfully, but these errors were encountered: