Page MenuHomePhabricator

VisualEditor: Pasting into nodes with whitespace inserts ☀
Closed, ResolvedPublic

Description

I copied part of a header from one page on se.wikimedia and pasted in an already started header on another page. After my paste the symbol ☀ was added:

https://se.wikimedia.org/w/index.php?title=Projekt%3AWikidata_2014%2FAns%C3%B6kan_till_Vinnova&diff=34844&oldid=34843

(Page I copied from: https://se.wikimedia.org/wiki/Projekt:Offentligkonst.se_2014/Ans%C3%B6kan_till_Vinnova )

I used Google Chrome Version 35.0.1916.153 on Ubuntu 14.04.


Version: unspecified
Severity: normal

Details

Reference
bz69595

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:33 AM
bzimport set Reference to bz69595.

Can you give more detailed steps to reproduce. Did you copy from read mode, or from VE? Where exactly did you select, and where exactly did you paste?

Nevermind, managed to reproduce.

This happens when pasting into any node with inner whitespace in it's Parsoid HTML (e.g. <h2> Foo </h2>)

gerritadmin wrote:

Change 154407 had a related patch set uploaded by Esanders:
Ignore whitespace when generating paste context

https://gerrit.wikimedia.org/r/154407

gerritadmin wrote:

Change 154407 merged by jenkins-bot:
Ignore whitespace when generating paste context

https://gerrit.wikimedia.org/r/154407