Last modified: 2007-03-30 09:31:52 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 6214 - Set ID attribute for body tag according to page title
Set ID attribute for body tag according to page title
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-06-05 22:49 UTC by Danny B.
Modified: 2007-03-30 09:31 UTC (History)
0 users

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


Description Danny B. 2006-06-05 22:49:28 UTC
Please add id attribute for body tag.

The id should:
- be equal to the {{FULLPAGENAME}}
- be coded as eg. anchors on pages: On page "ÁEÍOÚY" it would be encoded to
".C3.81E.C3.8DO.C3.9AY". But to keep the valid id some prefix should be added,
let's consider "wiki_", therefore the above example would finally be
"wiki_.C3.81E.C3.8DO.C3.9AY" which is valid id.

Usage of this feature:
- mainly intended for utilization in CSS - referencing to certain page
- secondary for robots which are checking the xhtml source instead of raw wiki

Thank you

Danny B.
Comment 1 Danny B. 2006-06-17 00:48:44 UTC

The prefix might be also dynamically generated such as:
Comment 2 Danny B. 2006-07-04 23:49:13 UTC
See also bug 6547 for related request
Comment 3 Rob Church 2007-03-30 09:31:52 UTC
Page content div is wrapped in various CSS classes pertaining to the namespace
and title.

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