Last modified: 2009-01-07 02:19:31 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 T17427, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15427 - Add an id to the title of the page (firstHeading)
Add an id to the title of the page (firstHeading)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.14.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links