The following wikitext:
- Foo
- <li class="bar"> Baz
Should render to <li> Foo</li><li class="bar"> Baz</li>. Currently, Parsoid renders this as <li>Foo</li><li> </li><li class="bar"> Baz</li>.
To clarify: the li tag in the list item isn't an /additional/ tag, it /overrides/ what the * would generate. This is totally evil, but there are structures on enwiki that rely heavily on this. For instance, the tree structure on [[Line of succession to the British throne]] is a nested ul/li structure, with class="lastline" applied to the last <li> in each list to make the vertical line not continue downwards after the last item in that list. This is abstracted into [[Template:Tree list/final branch]]. The actual wikitext of the line of succession looks like this:
{{Tree list}}
*[[Image:Simple silver crown.svg|15px]] ''HM [[George V]] (1865–1936)''
[[Image:Simple silver crown.svg|15px]] ''HM [[Edward VIII]](1894–1972)'' {{sup|XA}}
[[Image:Simple silver crown.svg|15px]] ''HM [[George VI]] (1895–1952)''
***[[Image:Simple gold crown.svg|15px]] '''HM [[Elizabeth II]]''' (born 1926) ''Reigning monarch''
- '''(1)''' HRH [[Charles, Prince of Wales|The Prince of Wales]] (The Prince Charles; b. 1948) {{sup|B D W}}
- '''(2)''' HRH [[Prince William, Duke of Cambridge|The Duke of Cambridge]] (Prince William; b. 1982) {{sup|B D W}}
- {{Tree list/final branch}}'''(3)''' HRH [[Prince Harry of Wales|Prince Henry 'Harry' of Wales]] (b. 1984) {{sup|B D W}}
****'''(4)''' HRH [[Prince Andrew, Duke of York|The Duke of York]] (The Prince Andrew; b. 1960) {{sup|B D W}}
- '''(5)''' HRH [[Princess Beatrice of York]] (b. 1988) {{sup|B D W}}
- {{Tree list/final branch}}'''(6)''' HRH [[Princess Eugenie of York]] (b. 1990) {{sup|B D W}}
Version: unspecified
Severity: normal