Last modified: 2012-05-08 13:55:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35937, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33937 - Add support to TOC for heading elements that have (or child of element with) display: none;
Add support to TOC for heading elements that have (or child of element with) ...
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-24 22:32 UTC by DMacks
Modified: 2012-05-08 13:55 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description DMacks 2012-01-24 22:32:09 UTC
If a page has a section-header that is in a collapsed part of the page, the table-of-contents link to it does not work. It doesn't even jump to the collapsed chunk. That's confusing--there's a TOC entry that's a hyperlink that's generated by the WM server pointing to other content on that same page, it should be able to resolve itself. If the chunk is un-collapsed, the TOC link works correctly. A better behavior would be to have the link to the header in the collapsed content cause it to un-collapse (i.e., the link in the TOC go to the section to which it points).
Comment 1 Mark A. Hershberger 2012-01-30 17:03:55 UTC
I *think* you're talking about the mobile version of the site, right?
Comment 2 DMacks 2012-01-30 17:43:22 UTC
Nope, regular version; Vector skin, firefox (consistent on several versions and OS/platforms). See https://en.wikipedia.org/wiki/User:DMacks/transclude-test and click on any of the TOC entries. For example, "1.1 liquid nitrogen in an electric kettle" is a link to https://en.wikipedia.org/wiki/User:DMacks/transclude-test#liquid_nitrogen_in_an_electric_kettle (note this is a live-updated page, so titles may change but effect is same for any of them) and that section/link-target is in the collapsed-content box below.
Comment 3 Mark A. Hershberger 2012-01-30 18:02:55 UTC
Thanks for the clear demonstration.  It seems to affect all skins (which makes sense). Some sort of JS modification is likely the solution.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links