Page MenuHomePhabricator

Pasting contents into slug at end of document breaks surface
Closed, DuplicatePublic


  1. Given a page with a highlighted node at the end of the page. E.g. ends with a <syntaxhighlight> block.
  2. Open another tab and copy a simple heading and line of text into the clipboard.
  3. Back to the main tab, focus the slug and paste.


  • Content area is visually distorted (left margin is gone) due to the surface documentNode having been replaced with a strange subtree. There's no uncaught exception. Reproducible on and latest git master.

Before pasting:

After pasting:

Note that the documentNode element has disappeared (unwrapped?), and in the user interface the margin on the left side is no longer present.


Event Timeline

Krinkle created this task.Feb 17 2015, 6:37 PM
Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle added a subscriber: Krinkle.
Restricted Application added a project: VisualEditor. · View Herald TranscriptFeb 17 2015, 6:37 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript