Closed Bug 1521118 Opened 6 years ago Closed 5 years ago

Add a way to set a separate name to display in the jump bar for a heading

Categories

(developer.mozilla.org Graveyard :: Wiki pages, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sheppy, Unassigned)

Details

(Keywords: in-triage)

Currently the jump bar displays the contents of each <h2> block. On pages such as https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats (but lots of pages are like this), the result is a jump bar with a log of really long links in it.

It would be much better if we could set secondary names for headers to be used in the jump bar. This could be done, for example, by using a data-* attribute, such as:

<h2 id="Format of a global date and time string" data-jumpname="Global date/time">
  Format of a global date and time string
</h2>

Then the value of data-jumpname, "Global date/time", would be used in the jump bar instead of the much longer "Format of a global date and time string". So much better!

Keywords: in-triage
Priority: -- → P3
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.