Last modified: 2007-05-31 03:31:07 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 T12077, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
1.11.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://commons.wikimedia.org/w/index....
:
Depends on:
Blocks:
  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: ---


Attachments

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

<font color="black">
==Legend==
# 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>
<ol>
<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>
</ol>

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.


Navigation
Links