https://bugzilla.wikimedia.org/show_bug.cgi?id=39066
Web browser: ---
Bug #: 39066
Summary: Divs containing lists that are closed on a list item
generate invalid HTML
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
On wikis without HTML Tidy installed/activated, when a div containing a list
has the div's closing tag placed at the end of the last item in the list, the
parser puts the </div> before the </[li|dt|dd]></[ul|ol|dl]> tags. For
instance, the following markup:
<div>
* This
* is
* a
* list.</div>
results in the following HTML:
<div>
<ul><li> This
</li><li> is
</li><li> a
</li><li> list.</div>
</li></ul>
By comparison, closing the div on the line following the last list item results
in valid markup being generated:
<div>
* This
* is
* a
* list.
</div>
results in:
<div>
<ul><li> This
</li><li> is
</li><li> a
</li><li> list.
</li></ul>
</div>
This is a problem e.g. on hlists in navboxes, where the list of links can
easily be longer than the navbox is wide. In this case, it seems to prevent the
list from wrapping, instead forcing the navbox to stretch to the length of the
entire list.
--
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