Steps to replicate the issue (include links if applicable):
- Reduce viewpoint to 320px
- Slow down connection using network tab e.g. 3G
- Visit https://m.mediawiki.org/w/index.php?title=T381658&useparsoid=1&mobileaction=toggle_view_mobile
Note: This can be simulated by the following steps
- Disable JavaScript
- Update the HTML tag replacing client-nojs with client-js
What happens?:
| Before JS | After JS |
The content of the section "Template generated section" is visible (briefly)
What should have happened instead?:
The section text after "Template generated section" should be hidden on initial page load.
Inspecting the HTML Parsoid has failed to wrap the content of the section with the appropriate DIV tag.
This looks like an issue in the logic
in the parser https://gerrit.wikimedia.org/g/mediawiki/core/+/c2c0388c0683b9b237bf7bb5fdb6acf0c2ab0233/includes/OutputTransform/Stages/HandleParsoidSectionLinks.php#42
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):


