https://bugzilla.wikimedia.org/show_bug.cgi?id=35371
Web browser: ---
Bug #: 35371
Summary: Sidebar generates duplicate IDs
Product: MediaWiki
Version: 1.18.1
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: User interface
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
If two (or more) links in the sidebar have the same display text (even if they
point to different pages), the HTML IDs generated for their containing list
items will be identical - which they shouldn't be according to definition (IDs
should always be unique on a page).
Example:
========
In MediaWiki:Sidebar, add:
* Example section
** Some link|Link text
* Example section 2
** Some other link|Link text
Example output:
===============
<!-- Example section -->
<div id="p-Example_section" class="portal">
<h5>Example section</h5>
<div class="body">
<ul>
<li id="n-Link-text"><a
href="/mediawiki-1.18.1/index.php/Some_link">Link text</a></li>
</ul>
</div>
</div>
<!-- /Example section -->
<!-- Example section 2 -->
<div id="p-Example_section_2" class="portal">
<h5>Example section 2</h5>
<div class="body">
<ul>
<li id="n-Link-text"><a
href="/mediawiki-1.18.1/index.php/Some_other_link">Link text</a></li>
</ul>
</div>
</div>
<!-- /Example section 2 -->
The generated ID for both list items is "n-Link-text".
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l