Page MenuHomePhabricator

VisualEditor: Fix "Uncaught Error: Offset could not be translated to a DOM element and offset: 2409"
Closed, ResolvedPublic

Description

Screenshot of problem

  1. Open https://en.wikipedia.org/wiki/Pancytopenia?veaction=edit#External_links
  2. Select Commonscat template block
  3. Put cursor in heading after "External links"
  4. Arrow keys to navigate down (to after text in list item "* [[CDC]]")
  5. Arrow keys to navigate right

Uncaught Error: Offset could not be translated to a DOM element and offset: 2409

ve.ce.Document.getNodeAndOffset
ve.ce.Surface.showSelection
ve.ce.Surface.onChange
oo.EventEmitter.emit
ve.dm.Surface.change
ve.ce.Surface.handleLeftOrRightArrowKey
ve.ce.Surface.onDocumentKeyDown
proxy
jQuery.event.dispatch
elemData.handle.eventHandle


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2013-07-17_at_1.53.28_PM.png (774×2 px, 204 KB)

Details

Reference
bz51526

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:08 AM
bzimport set Reference to bz51526.

This appears to now be fixed. Marking as such, though can't determine exactly what fixed fixed it (probably Ed's cursoring changes?).

I just got that same error ("Uncaught Error: Offset could not be translated to a DOM element and offset: 458") on Meta. Sadly, I don't know what caused it.