Last modified: 2011-04-14 15:14:28 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 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)
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
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: ---


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.



* foo

is rendered as:

<h2><span class="mw-headline" id="Heading"></span></h2>
<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>
Comment 1 Gadget850 2009-09-26 22:12:10 UTC
Probably worth noting that the page in question is:

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:


<p><a name="foo" id="foo"></a></p>
<li><span class="mw-headline">bar</span></li>

<h2 id="foo"></h2>
<h2 id="foo">foo</h2>
<li><span class="mw-headline">bar</span></li>

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

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.