Page MenuHomePhabricator

Vector 2022 dynamic table of contents broken on Parsoid
Open, LowPublicBUG REPORT


NOTE: As noted in T337286 there is no stable API for accessing headings but given this regression we might want to re-prioritize that ticket.

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

  • Enable Parsoid read views using ParserMigration (or which is the only production site using this)
  • Visit a long page with many sections
  • Scroll down

What happens?:
Table of contents does not change at all

What should have happened instead?:
Table of contents should bold and expand the section you're currently on

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
If the current URL has an anchor, that section does get highlighted, althought that too does not get updated when scrolling (unless you scroll to the very top).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Web team discussed this in our grooming meeting and it seems like it would be best if we schedule a quick meeting to decide on next steps together. @ovasileva will look for some time and schedule something.

Jdlrobson lowered the priority of this task from High to Medium.Wed, Apr 3, 6:26 AM

I realized that the same problem is affecting my work on T13555. I hope you won't mind if I write the patch.

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

[mediawiki/skins/Vector@master] Compatibility with new heading HTML (table of contents)

Change #1022398 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):

[integration/visualdiff@master] Revert "Force lazy elements to be loaded"

Change #1022398 merged by jenkins-bot:

[integration/visualdiff@master] Revert "Force lazy elements to be loaded"