Page MenuHomePhabricator

VisualEditor: Cursor navigation loops in block slugs at the start/end of the document
Closed, DuplicatePublic

Description

Start case:

  1. Create a document that starts with {{echo|<div>foo</div>}} followed by some more content
  2. Put the cursor on the paragraph below the template
  3. Press left arrow until you're selecting the template
  4. Press left arrow; the cursor is now in the block slug
  5. Press left arrow; the cursor is now on the template
  6. Go to step 4

End case:

  1. Create a document that ends with <references /> preceded by some content
  2. Put the cursor in the paragraph above the reflist
  3. Press right arrow until you're at the end of this paragraph
  4. Press right arrow; the cursor is now on the reflist
  5. Press right arrow; the cursor is now in the block slug
  6. Press right arrow; the cursor is now before the reflist
  7. Go to step 4

Note how the end case differs from the start case in that the loop is 3 keypresses long rather than 2.


Version: unspecified
Severity: normal

Details

Reference
bz62066