Page MenuHomePhabricator

Wrong headings are bolded in the ToC
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What should have happened instead?:
The bolded heading in the ToC should match the section on the screen

Other information (browser name/version, screenshots, etc.): both the newest Firefox and Chrome

Event Timeline

Maybe this is a duplicate of T318044, the DiscussionTools extension would add a wrapper to h2 elements.

ovasileva triaged this task as Medium priority.Dec 13 2022, 5:25 PM

@alexhollender_WMF also identified an issue where if you navigate directly to a section within a talk page (e.g. link 1) the wrong section within the ToC is highlighted (Actual: Etymology-Literature vs. Expected: please unclutter the montage).

Question: do we think the patch(es) that will fix the issue this ticket currently describes might also cover the issue I described above?

@alexhollender_WMF also identified an issue where if you navigate directly to a section within a talk page (e.g. link 1) the wrong section within the ToC is highlighted (Actual: Etymology-Literature vs. Expected: please unclutter the montage).

Question: do we think the patch(es) that will fix the issue this ticket currently describes might also cover the issue I described above?

This looks unrelated. Moved to T325115

Change 867725 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/skins/Vector@master] Mark active sections even when their headings are in wrapper elements

https://gerrit.wikimedia.org/r/867725

This bug affects discussion pages on projects where we already deployed the fix for T314714 – including MediaWiki.org (as reported here) and Polish Wikipedia (as reported at T316037#8463134), but not English Wikipedia.

Also, @Func is correct that this is basically the same issue as T318044 (except that it's caused by markup generated by our code, rather than added in wikitext), so you'll also see a similar problem on pages that have headings wrapped in fancy markup on any project, including English Wikipedia – for example https://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletion/Log/2022_December_1?useskin=vector-2022.

ppelberg added a subscriber: Jdlrobson.

Moving this to Blocked while we await code review from the Web Team. cc @Jdlrobson

Change 867725 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Mark active sections even when their headings are in wrapper elements

https://gerrit.wikimedia.org/r/867725

Change 874884 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/skins/Vector@wmf/1.40.0-wmf.14] Mark active sections even when their headings are in wrapper elements

https://gerrit.wikimedia.org/r/874884

I'm backporting this, because I forgot that it wasn't fixed in production yet, and yesterday I deployed a config change that accidentally spread this issue to additional wikis (T314714). Sorry about that.

Change 874884 merged by jenkins-bot:

[mediawiki/skins/Vector@wmf/1.40.0-wmf.14] Mark active sections even when their headings are in wrapper elements

https://gerrit.wikimedia.org/r/874884

Mentioned in SAL (#wikimedia-operations) [2023-01-04T14:18:04Z] <urbanecm@deploy1002> Started scap: Backport for [[gerrit:870978|plwiki: Add editcontentmodel to interface-admin (T325819)]], [[gerrit:874884|Mark active sections even when their headings are in wrapper elements (T318044 T324869)]]

Mentioned in SAL (#wikimedia-operations) [2023-01-04T14:19:53Z] <urbanecm@deploy1002> urbanecm and stang and matmarex: Backport for [[gerrit:870978|plwiki: Add editcontentmodel to interface-admin (T325819)]], [[gerrit:874884|Mark active sections even when their headings are in wrapper elements (T318044 T324869)]] synced to the testservers: mwdebug2002.codfw.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2001.codfw.wmnet, mwdebug1001.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-01-04T14:27:36Z] <urbanecm@deploy1002> Finished scap: Backport for [[gerrit:870978|plwiki: Add editcontentmodel to interface-admin (T325819)]], [[gerrit:874884|Mark active sections even when their headings are in wrapper elements (T318044 T324869)]] (duration: 09m 32s)