https://bugzilla.wikimedia.org/show_bug.cgi?id=23699

           Summary: wrapWikiMsg can produce invalid html
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Page rendering
        AssignedTo: [email protected]
        ReportedBy: [email protected]


The most use of wrapWikiMsg is "<div class='mw-history-legend'>\n$1</div>", but
it is better to also add a newline behind $1.

The problem is, when the wrap message use a list at the end, the closing div is
added to the last item of this list. But the parser closed the list behind the
div, so the ol and div are in the wrong order.

On normal wikipages, HTML Tidy is correted this, but for system message HTML
Tidy is not used (expensive).

Example Wikitext:

Text
* item
* item

is wrapped:

<div class='mw-history-legend'>
Text
* item
* item</div>

ParserOutput:

<div class="mw-history-legend">
<p>Text
</p>
<ul><li> item
</li><li> item</div>
</li></ul>

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to