Last modified: 2006-10-22 02:30:49 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 T9662, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7662 - HTML IDs for headings can be the same than existing IDs
HTML IDs for headings can be the same than existing IDs
Status: RESOLVED DUPLICATE of bug 7356
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-22 02:25 UTC by Schnargel
Modified: 2006-10-22 02:30 UTC (History)
0 users

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


Attachments

Description Schnargel 2006-10-22 02:25:06 UTC
MediaWiki adds an ID attribute to each heading on a page using the heading's contents as name. The HTML specification requires this name to be 
unique in a document.

It is possible to use headings with the same name than existing MediaWiki IDs in the page (like "toc", "column-one", or "siteNotice") resulting in 
having the same ID twice and thus breaking the HTML.

The usefulness of these IDs might be limited anyway since the contents of wiki pages and the names of these IDs might change sudden and often 
and since the A tag where these IDs are put in is closed directly afterwards so there's no content that could be addressed by a stylesheet using these 
IDs.
Comment 1 Dan Li 2006-10-22 02:30:49 UTC

*** This bug has been marked as a duplicate of 7356 ***

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


Navigation
Links