Last modified: 2009-01-07 02:19:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 15427 - Add an id to the title of the page (firstHeading)
Add an id to the title of the page (firstHeading)
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-09-01 18:56 UTC by Seb35
Modified: 2009-01-07 02:19 UTC (History)
2 users (show)

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


Description Seb35 2008-09-01 18:56:10 UTC
Is it possible to add a CSS id to the title of the page (the first h1 heading).

It has already the class "firstHeading" in the Monobook skin, but an id would be useful for scripts which presently use something like document.getElementsByTagName("h1")[0].

This change must be done in the Monobook skin; and it would be better to review the Modern skin because there is an id "firstHeading" but no class (contrary to Monobook). I don't know if the other skins should be modified.
Comment 1 Happy-melon 2008-10-27 17:06:20 UTC
Surely the more logical approach would be to apply firstHeading as an id in Monobook (as in Modern) and apply the CSS styles to it as an id rather than as a class.  
Comment 2 Aaron Schulz 2009-01-03 16:59:20 UTC
Done in r45376
Comment 3 Brion Vibber 2009-01-07 02:19:31 UTC
Followup in r45377.

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