Last modified: 2014-01-20 23:40:04 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 T37806, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35806 - [[Special:ExpandTemplates]] outputs different html than any page on preview/save as well as in Result & Preview sections
[[Special:ExpandTemplates]] outputs different html than any page on preview/s...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://en.wikipedia.org/wiki/Special...
: need-parsertest, parser
: 35822 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-07 23:23 UTC by Danny B.
Modified: 2014-01-20 23:40 UTC (History)
5 users (show)

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


Attachments

Description Danny B. 2012-04-07 23:23:43 UTC
Special:ExpandTemplates outputs different html than any page on preview/save as well as in Result & Preview sections.


Examples:

code:
<div class="listtest">
* foo
*bar
* baz
*qux
* lorem
*ipsum
</div>

on Special:ExpandTemplates / Preview:
<div class="listtest">
<ul><li> foo
</li><li>bar
</li><li> baz
</li><li>qux
</li><li> lorem
</li><li>ipsum
</li></ul>
</div>

on page preview:
<div class="listtest">
<ul>
<li>foo</li>
<li>bar</li>
<li>baz</li>
<li>qux</li>
<li>lorem</li>
<li>ipsum</li>
</ul>
</div>

(mind the whitespaces which are important for some CSS constructions as well as for some JS)

code:
<table>
<tr>
<th>Header</th>
</tr>
<tr>
<td>foo
bar
baz
qux</td>
</tr>
</table>

on Special:ExpandTemplates / Preview:
<table>
<tr>
<th>Header</th>
</tr>
<tr>
<td>foo
bar
baz
qux</td>
</tr>
</table>

on Special:ExpandTemplates / Result:
<table>
<tr>
<th>Header</th>
</tr>
<tr>
<td>foo
<p>bar
baz
</p>
qux</td>
</tr>
</table>

on page preview:
<table>
<tr>
<th>Header</th>
</tr>
<tr>
<td>foo
<p>bar baz</p>
qux</td>
</tr>
</table>

(mind the <p> tag)
Comment 1 Helder 2013-03-16 12:23:37 UTC
Still reproducible on English Wikipedia:
https://en.wikipedia.org/wiki/Special:ExpandTemplates?input=%3Cdiv+class%3D%22listtest%22%3E%0A*+foo%0A*bar%0A*+baz%0A*qux%0A*+lorem%0A*ipsum%0A%3C%2Fdiv%3E
and also at
https://en.wikipedia.org/wiki/Special:ExpandTemplates?input=<table>%0A<tr>%0A<th>Header<%2Fth>%0A<%2Ftr>%0A<tr>%0A<td>foo%0Abar%0Abaz%0Aqux<%2Ftd>%0A<%2Ftr>%0A<%2Ftable>
(except by the fact that now we have <tbody> tags aroud the <table> content)

Since [[Special:ExpandTemplates]] is a special page, this may be related to
https://bugzilla.wikimedia.org/show_bug.cgi?id=39617
Comment 2 Helder 2013-03-16 12:31:46 UTC
*** Bug 35822 has been marked as a duplicate of this bug. ***
Comment 3 Brion Vibber 2013-09-27 16:02:02 UTC
Looks to me like the HTML preview in ExpandTemplates is not enabling Tidy (though it is enabled on the preprocessor, where it probably has no effect).
Comment 4 db [inactive,noenotif] 2014-01-12 10:06:06 UTC
special page was moved to core

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


Navigation
Links