Last modified: 2011-04-14 15:14:28 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 T22829, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20829 - Unordered list after <center>ed heading contains additional <li>s
Unordered list after <center>ed heading contains additional <li>s
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.16.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/Wikipedi...
:
Depends on:
Blocks: tidy
  Show dependency treegraph
 
Reported: 2009-09-26 20:31 UTC by Svick
Modified: 2011-04-14 15:14 UTC (History)
2 users (show)

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


Attachments

Description Svick 2009-09-26 20:31:57 UTC
Whenever you have centered heading (==<center>Heading</center>==), then it somehow changes following tags in HTML so that they contain <span class="mw-headline" id="Heading">(usual text)</span> that they shouldn't. In case of unordered list (ordered list works the same as other tags) this causes insetion of <li style="list-style-type: none; list-style-image: none; list-style-position: outside;"><span class="mw-headline" id="Heading"></span></li> after every item. This probably shouldn't be visible, but Internet Expolorer seems to ignore that style and so shows an empty list item after every normal item.

Example:

==<center>Heading</center>==

* foo

is rendered as:

<h2><span class="mw-headline" id="Heading"></span></h2>
<center>
<h2>Heading</h2>
</center>
<ul>
<li><span class="mw-headline" id="Heading">foo</span></li>
<li style="list-style-type: none; list-style-image: none; list-style-position: outside;"><span class="mw-headline" id="Heading"></span></li>
</ul>
Comment 1 Gadget850 2009-09-26 22:12:10 UTC
Probably worth noting that the page in question is:
http://en.wikipedia.org/w/index.php?title=Wikipedia:Template_messages&oldid=316046939

And that the heading markup is used in a table.
Comment 2 RockMFR 2009-09-28 03:42:31 UTC
So far I've been unable to reproduce this in a local installation. Seems like a Tidy-related bug (which I can't get working locally).
Comment 3 RockMFR 2009-09-29 01:30:32 UTC
Okay, I was finally able to reproduce locally. Results with Tidy enabled:

==<center>foo</center>==
*bar

r52962:
<p><a name="foo" id="foo"></a></p>
<center>
<h2>foo</h2>
</center>
<ul>
<li><span class="mw-headline">bar</span></li>
</ul>

r52963-r53576:
<h2 id="foo"></h2>
<center>
<h2 id="foo">foo</h2>
</center>
<ul>
<li><span class="mw-headline">bar</span></li>
</ul>

r53577:
<h2><span class="mw-headline" id="foo"></span></h2>
<center>
<h2>foo</h2>
</center>
<ul>
<li><span class="mw-headline" id="foo">bar</span></li>
<li style="list-style: none"><span class="mw-headline" id="foo"></span></li>
</ul>

This looks like a Tidy quirk/bug to me.

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


Navigation
Links