Page MenuHomePhabricator

VisualEditor: Deal with mw:Placeholder span wrapping the first newline in a <pre>
Closed, ResolvedPublic

Description

To distinguish between <pre>Foo</pre> and <pre>\nFoo</pre>, Parsoid gives us HTML like <pre><span typeof="mw:Placeholder">\n</span>Foo</pre> for the latter. We don't currently have any special handling for this placeholder in VE, so it shows up as an inline alien.

I'm asking the Parsoid team to remove it.


Version: unspecified
Severity: normal

Details

Reference
bz41727

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:08 AM
bzimport set Reference to bz41727.

Parsoid removed this behavior as requested, and with https://gerrit.wikimedia.org/r/#/c/32260/ the editor now handles <pre>s correctly.