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

       Web browser: ---
             Bug #: 41289
           Summary: * <li> hack renders incorrectly in Parsoid
           Product: Parsoid
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JS/General
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


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}}

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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