Pre-XHTML HTML allows a number of elements to be implicitly closed,
such as <li> within a <ul> or <ol>.
In 1.5, MediaWiki allowed this code through:
<ul>
<li>One
<li>Two
</ul>
While invalid XHTML due to not being well-formed, this did render
in browsers the way people would expect from traditional HTML.
In 1.6 and current trunk, this is smashed up in output as:
<ul>
<li>One
<li>Two
</ul>
</li>
</ul>
The second <li> and the closing </ul> are rejected and escaped, then closing
</li> and </ul> get added at the end of the document.
Proper application of nesting rules *should* normalize it to
something like this:
<ul>
<li>One
</li><li>Two
</li></ul>
Version: 1.7.x
Severity: normal
URL: http://mail.wikipedia.org/pipermail/mediawiki-l/2006-April/011215.html