Last modified: 2014-09-25 22:48:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73303, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71303 - Investigate "incorrect" list rendering in mixed bullet-<li> style lists that are also mixed with some broken formatting tags.
Investigate "incorrect" list rendering in mixed bullet-<li> style lists that ...
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal minor
: ---
Assigned To: Parsoid Team
http://parsoid-lb.eqiad.wikimedia.org...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-25 14:30 UTC by Nemo
Modified: 2014-09-25 22:48 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Comment 1 ssastry 2014-09-25 22:08:40 UTC
This is already supported. See below.

[subbu@subbu-wmf tests] echo "* foo <li> bar" | node parse --normalize

<ul>
<li>foo</li>
<li>bar</li>
</ul>

[subbu@subbu-wmf tests] echo "* '''[[Power-to-weight ratio|Power/mass]]:''' 0.034 hp/lb (0.056 kW/kg)<li>'''[[Lift-to-drag ratio]]:''' 11.9</ul><big></ul>'''Armament'''</big><br/>" | node parse --normalize

<ul>
<li><b><a href="Power-to-weight_ratio" title="Power-to-weight ratio">Power/mass</a>:</b> 0.034 hp/lb (0.056 kW/kg)</li>
<li><b><a href="Lift-to-drag_ratio" title="Lift-to-drag ratio">Lift-to-drag ratio</a>:</b> 11.9</li>
</ul>
<big></big>
<p><big><b>Armament</b></big><br/></p>
Comment 2 Nemo 2014-09-25 22:24:56 UTC
Well, I'm not sure what's the expected HTML output, but the URL doesn't look pretty.
Comment 3 ssastry 2014-09-25 22:34:18 UTC
Ah I see what you mean ... I was about to say that http://parsoid-lb.eqiad.wikimedia.org/enwiki/Consolidated_PBY_Catalina?oldid=326925504 looks pretty enough to me.

I'll have to take a larger piece of wikitext from that area and investigate. One of us will in the coming days. This feels slightly lower priority compared to the other brokenness we have to fix.

One option would be to fix up the wikitext to be less broken than it is and see what it fixes.

<big></ul>..</big> should instead be </ul><big>...</big>
Comment 4 Nemo 2014-09-25 22:37:38 UTC
Sure, this looks rare and it's not tragic.
Comment 5 ssastry 2014-09-25 22:48:14 UTC
From https://en.wikipedia.org/w/index.php?title=Template:Aircraft_specifications&action=edit

...
 }}<big>{{{armament header|</ul>'''Armament'''}}}</big><br/>
...

Not sure if there is a way to fix that. I am lazy to lookup the exact parser function syntax, but the wikitext equivalent of:

if ({{{armament header}}}) {
  <big>{{{armament header}}}</big>
} else {
  </ul><big>'''Armament'''</big>
}<br/>

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links