Page MenuHomePhabricator

VisualEditor: Backspace over a slug at the end of the document throws an error
Closed, ResolvedPublic

Description

Pressing backspace in a slug at the end of the document throws an error:

  • Create a new page (or go to an existing one), and enter "ABCD\n" at the end
  • With the cursor in the new slug, press backspace; this throws an error:

Uncaught Error: ve.dm.Document.getNodeFromOffset(): offset 9 is out of bounds


Version: unspecified
Severity: major

Details

Reference
bz42657