Page MenuHomePhabricator

VisualEditor: Link annotations can be split into two adjacent ones when other annotations overlap
Closed, DuplicatePublic

Description

I dug deeper after filing bug 73201.

  1. Type "abcdef".
  2. Make "ab" italic.
  3. Make "ef" italic.
  4. Make "bcde" a link.

Result: ''a[[bcde|b]]''[[bcde|cd''e'']]''f''
Expected: ''a''[[bcde|''b''cd''e'']]''f''

The result doesn't seem to depend on the order of operations here.

VisualEditor should avoid splitting link annotations.


Version: unspecified
Severity: normal

Details

Reference
bz73202

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:45 AM
bzimport set Reference to bz73202.

(In reply to Bartosz Dziewoński from comment #0)

  1. Make "ef" italic.

Actually, you can skip this step, and still get the "split link" effect.

This is essentially also a duplicate of bug 50098; marking as a subsidiary though in case there are specific concerns.

Note that this remains the case even post T105239: Enable scrubWikitext=1 in VisualEditor's save route to Parsoid as Parsoid's scrubWikitext model doesn't aggressively merge links ahead of other styles.

Do we need to file a task which requests that?