Page MenuHomePhabricator

Link with annotations gets split on re-render
Closed, ResolvedPublic8 Estimated Story Points

Description

  1. Create a MediaWiki document with
[[Main Page|''italic'' link]]

or

[http://example.org ''italic'' link]
  1. Click on either link and remove the link, then press undo to restore it
  2. Observe you now have two links.

This also happens with freshly typed text (not from Parsoid) but doesn't happen in VE-core.

Event Timeline

Quite probably related to T52098, but interesting that it doesn't happen in core.

Change 299570 had a related patch set uploaded (by Divec):
TransactionProcessor: Apply annotations to ranges at the highest uniform offset

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

Jdforrester-WMF triaged this task as High priority.
Jdforrester-WMF set the point value for this task to 8.

You can do it in core with the following example:

  1. Edit <h1><a href=x><i>foo</i>bar</a></h1>
  2. Observe that there is a single link.
  3. Click to remove the link, then undo to restore it
  4. Observe that there are two adjacent links.

Change 299570 merged by jenkins-bot:
TransactionProcessor: Apply annotations to ranges at the highest uniform offset

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