Last modified: 2007-05-31 03:31:07 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 10077 - Unclosed <font> tag breaks list numbering in next section
Unclosed <font> tag breaks list numbering in next section
Status: RESOLVED DUPLICATE of bug 9737
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-05-31 00:21 UTC by Ilmari Karonen
Modified: 2007-05-31 03:31 UTC (History)
1 user (show)

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


Description Ilmari Karonen 2007-05-31 00:21:29 UTC
See URL; for some strange reason, this markup:

<font color="black">
# Condenser coil (hot side heat exchanger)
# Expansion valve
# Evaporator coil (cold side heat exchanger)
# Compressor

produces this HTML output:

<p><font color="black"><a name="Legend" id="Legend"></a></font></p>
<h2><font color="black"><span class="mw-headline">Legend</span></font></h2>
<li><font color="black">Condenser coil (hot side heat exchanger)</font></li>
<li style="list-style-type: none; list-style-image: none; list-style-position: outside;"></li>
<li><font color="black">Expansion valve</font></li>
<li><font color="black">Evaporator coil (cold side heat exchanger)</font></li>
<li><font color="black">Compressor</font></li>

Note how the spurious font tag gets repeated in all the following paragraphs, headings and list items: I believe this is done by tidy, and is considered a feature.  However, also note the extra empty <li> with the funny style attribute in the output HTML.  The styling makes the extra list item effectively invisible, so that the only visible effect is that it messes up the numbering, making the list render like this:

   1. Condenser coil (hot side heat exchanger)
   3. Expansion valve
   4. Evaporator coil (cold side heat exchanger)
   5. Compressor

(Incidentally, when I cut and pasted the list here in Firefox, an empty "2." item did appear in the pasted output, even though none was visible on the origibal page.)

Now, can anyone explain what weird and wonderful interaction between the MediaWiki parser and tidy might be causing this?
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-05-31 03:31:07 UTC

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

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