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.
Version: unspecified
Severity: normal
URL: http://yugioh.wikia.com/wiki/User:Dinoguy1000/sandbox?oldid=2041434
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=1581