Last modified: 2010-03-02 10:40:50 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 T24693, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22693 - Invalid section-IDs - especially when using special characters
Invalid section-IDs - especially when using special characters
Status: RESOLVED DUPLICATE of bug 9530
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.16.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-02 09:18 UTC by Owltom
Modified: 2010-03-02 10:40 UTC (History)
1 user (show)

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


Attachments

Description Owltom 2010-03-02 09:18:31 UTC
When creating sections like:

==Überschrift (german for "heading")==

mediawiki produces the following code in HTML:

<pre>
<h2> <span class="mw-headline" id=".C3.9Cberschrift">Überschrift</span></h2>
</pre>

* id=".C3.9Cberschrift" is clearly wrong (id and name attributes must begin with a letter)

* it's hard to target such IDs with css

* Why create a span with an ID in the first place? An element with an id should only exist once in a html document; it cannot be guaranteed that users don't create equal sections (that will lead to multiple IDs with the same name)
Comment 1 Owltom 2010-03-02 09:26:53 UTC
Stupid me, the IDs are numbered consecutively, forget that part, sorry.
Comment 2 Roan Kattouw 2010-03-02 10:40:50 UTC

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

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


Navigation
Links