Page MenuHomePhabricator

VisualEditor: Parsoid is sent text outside of any node for the first line of a new article
Closed, ResolvedPublic

Description

Steps to repro:

  1. Open new page in VE.
  1. Click on first line, enter text, enter newline, enter more text.
  1. Click save.

Expected behavior: Two paragraphs.

Actual behavior: One paragraph with a single line break where there should be two.

Tested locally and found that Parsoid's web service gets the DOM as something like "First line<p>Second line</p>", which it can't handle correctly (the fix breaks many other parser tests).


Version: unspecified
Severity: normal

Details

Reference
bz41905

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:50 AM
bzimport set Reference to bz41905.

Fixed by Roan in between filing and now - Parsoid now receives "<p data-parsoid="{&quot;dsr&quot;:[0,23]}">First line</p><p data-parsoid="{&quot;dsr&quot;:[0,23]}">Second line</p>".

  • This bug has been marked as a duplicate of bug 42121 ***