Page: https://en.wikipedia.org/wiki/MediaWiki:Gadget-popups.js
This contains raw <h2> elements. Because we parse JS pages in wikitext mode (for backlink support and categorization), but render them without wikitext mode, this page does actually have a ToC. It just never used to be visible until now.
Not sure what the best strategy for a fix here is, modify the script, or think about if we maybe should not present ToCs for certain content models (or both).
QA steps
- Beta cluster: Confirm https://en.wikipedia.beta.wmflabs.org/wiki/MediaWiki:Gadget-popups.js has no table of contents
- Production - confirm https://en.wikipedia.org/wiki/MediaWiki:Gadget-popups.js has no table of contents
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T307691#8135559 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T307691#8135562 |