Mediawiker
Mediawiker copied to clipboard
Code folding
The code folding seems flawed. When folding e.g. level 4 I would expect to collapse all text of level 4 headings (i.e. all h5 and below headings are hidden), but see the h4 headings (without text) and h3 and higher headings with text. This is only partly the case, as some h3 and h2 headings are hidden too (the levels are only examples, the issue is true for any level).
Example: Open the page "Microsoft Windows" on Wikipedia and Fold level 4. The last heading shown is "Platform support" (h4). But when you unfold this heading then there are several h2 and h3 headings below, which were hidden. This issue does not only occur for the last heading.
It seems to me that higher level headings (e.g. h2, h3, h4) are hidden if they are after a collapsed heading (e.g. h5).