Page MenuHomePhabricator

VisualEditor: Backwards selection fails over inline alien nodes
Closed, ResolvedPublic


Start with an article with an inline alien - e.g. "ABC<tt>:-)</tt>DEF". Place cursor "up page" (in LTR, left) of inline alien; selection with keyboard down-page works as expected. Now place the cursor "down page" (in LTR, right) of the inline alien; selection with keyboard up-page fails when reaching the alien, clearing the selection and placing the cursor immediately up-page of the alien.

Note that in RTL this appears to work fine(!).

Confirmed in both Chrome and Firefox.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 12:55 AM
bzimport set Reference to bz42401.

This was resolved in Iba55cfc3d531e7d1333b78c94912ff22179aace8

The issue was that the cursor "fix-up" code was not preserving non-zero-length selections.