Last modified: 2011-07-12 00:26:01 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 18688 - special character in sidebar leads to corrupt css
special character in sidebar leads to corrupt css
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-05 23:38 UTC by m
Modified: 2011-07-12 00:26 UTC (History)
3 users (show)

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


Attachments

Description m 2009-05-05 23:38:21 UTC
Sidebar <li> - elements are getting an automatic id by the linktext.
But this provides corrupt id-name, if you use special character, according to css.


<li id="n-.C3.9Cbersicht"><a href="/index.php/%C3%9Cbersicht">Übersicht</a></li>

#n-.C3.9Cbersicht
and
#n-.Übersicht
can't accessed by css.

thx
klml
Comment 1 Happy-melon 2009-05-15 21:34:40 UTC
Where is this issue apparent? Can you link to an example?
Comment 2 m 2009-05-18 10:42:56 UTC
> Where is this issue apparent?
> Can you link to an example?

Sorry I got this problem in a extranet and made a workaround with "Uebersicht".
Comment 3 Happy-melon 2009-05-18 11:53:19 UTC
I mean can you be more specific about what you put where to get the effect: it sounds to me like you put a line 

* Übersicht | page-title

in [[MediaWiki:Sidebar]], and you fixed it by replacing the Ü with Ue.  Is that right?
Comment 4 m 2009-05-18 20:49:31 UTC
> I mean can you be more specific about what you put where to get the effect: it sounds to me like you put a line 
in wiktext I have:

 ** Home|Home
 ** Start|Start
 ** Navigation|Navigation
 ** Übersicht|Uebersicht
 ** Übersicht|Übersicht
 ** Staff|Staff

in html I have
 <div class='pBody'>
  <ul>
   <li id="n-Home"><a href="/index.php/Home">Home</a></li>
   <li id="n-Start"><a href="/index.php/Start">Start</a></li>
   <li id="n-Navigation"><a href="/index.php/Navigation">Navigation</a></li>
   <li id="n-Uebersicht"><a href="/index.php/%C3%9Cbersicht">Uebersicht</a></li>
   <li id="n-.C3.9Cbersicht"><a href="/index.php/%C3%9Cbersicht">Übersicht</a></li>
   <li id="n-Staff"><a href="/index.php/Staff">Staff</a></li>

I added the line '** Übersicht|Übersicht' just to reproduce the bug.


> in [[MediaWiki:Sidebar]], and you fixed it by replacing the Ü with Ue.  Is that right?
Yes

thx
Comment 5 DieBuche 2011-07-10 14:57:20 UTC
fixed in r91833
Comment 6 Brion Vibber 2011-07-12 00:26:01 UTC
Small tweak in r91932 to use the 'noninitial' mode on Sanitizer::escapeId(), since we prepend 'n-' to the beginning it doesn't need to worry about prepending something to make the initial char valid.

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


Navigation
Links