Last modified: 2014-07-08 02:25:20 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 T68655, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66655 - Multiline code tag results in strange html
Multiline code tag results in strange html
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.23.0
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-16 09:18 UTC by Dan Poltawski
Modified: 2014-07-08 02:25 UTC (History)
1 user (show)

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


Attachments

Description Dan Poltawski 2014-06-16 09:18:08 UTC
When creating a new wiki page with the following content:
<code>
 foo()
 bar()
</code>

The generated html is:
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
<p><code></code></p><code>
<pre>foo()
bar()
</pre>
</code><p><code></code>
</p>
</div>


The empty code tags are a bit curious.
Comment 1 Jackmcbarn 2014-07-08 02:25:20 UTC
The output in the description happens when Tidy is enabled. When it's disabled, this happens instead:

<p><code>
</p>
<pre>foo()
bar()
</pre>
<p></code>
</p>

Note that it's also wrong, so we can't blame this bug on Tidy.

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


Navigation
Links