Page MenuHomePhabricator

Inconsistent parser behavior with space-pre nested in HTML lists
Open, MediumPublic

Description

<ul>
<li>

Whatever text.

<ul>
<li>I am a nested list.</li>
</ul>

 I am a space-indented
 preformatted text block.

</li>
<li>

Whatever text.

 I am *NOT* a space-indented
 preformatted text block.
 I am not even a separate paragraph.

</li>
</ul>

For what it's worth, Parsoid produces no preformatted text blocks here, and does something completely different (and not any less stupid) than the core parser with the paragraphs.


Version: 1.24rc
Severity: normal

Details

Reference
bz69313

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:32 AM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz69313.
bzimport added a subscriber: Unknown Object (MLST).

This is still a problem:

image.png (369×1 px, 44 KB)

For what it's worth, Parsoid produces no preformatted text blocks here, and does something completely different (and not any less stupid) than the core parser with the paragraphs.

This is no longer true any more – Parsoid now produces the same result as the old parser.