Last modified: 2014-09-20 19:48:34 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 T35815, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33815 - Bracketing violation parsing template parameters and surrounding HTML code
Bracketing violation parsing template parameters and surrounding HTML code
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.18.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-parsertest
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-19 10:41 UTC by Richard B. Kreckel
Modified: 2014-09-20 19:48 UTC (History)
2 users (show)

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


Attachments

Description Richard B. Kreckel 2012-01-19 10:41:32 UTC
Here is a simple Template:Test:
<div>{{{1}}}</div>

If the parameter is an unordered list it expands to bad HTML:
{{test|This is an unordered list:
* foo
* bar
* baz}}

Note the mismatching opening and ending tags in the final HTML:
<div>This is an unordered list:
<ul><li> foo
</li><li> bar
</li><li> baz</div>
</li></ul>
Comment 1 Mark A. Hershberger 2012-01-19 23:00:59 UTC
is html tidy not used here?
Comment 2 Jackmcbarn 2014-09-20 19:48:34 UTC
This has nothing to do with templates. The same behavior is also exhibited with the following wikitext:

<div>This is an unordered list:
* foo
* bar
* baz</div>

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


Navigation
Links