Page MenuHomePhabricator

VisualEditor: Trying to insert anything in the slug inside a media dialog box throws Uncaught Error: Offset could not be translated to a DOM element and offset: 63
Closed, ResolvedPublic

Description

screenshot 1

Steps to reproduce:

1.Go to the media settings of an image
2.Create a slug
3.Try to insert a special character/link/reference in the slug

Observed Result:

It shows an error in the console: Uncaught Error: Offset could not be translated to a DOM element and offset: 63
Also if it is an inspector it goes all blank

See the screenshot attached

Test Environment: http://en.wikipedia.beta.wmflabs.org/
: Chrome Version 26.0.1410.65
OS: MAC OS X 10. 8. 5
Page:http://en.wikipedia.beta.wmflabs.org/wiki/24thMarchrome?veaction=edit


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2014-03-24_at_12.11.22_PM.png (730×1 px, 345 KB)

Details

Reference
bz63025

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:58 AM
bzimport set Reference to bz63025.

Created attachment 14893
screenshot 2

Attached:

Screen_Shot_2014-03-24_at_12.14.52_PM.png (499×1 px, 237 KB)

I believe/hope this is now fixed…

This issue has resurfaced with error as "Uncaught Error: offset -1 out of bounds" when trying to insert a link/special character in a slug.

Nope, this bug must have a different cause because it occurs in test2 and production as well.

This is now fixed with latest slug work I guess.

Verified the fix in production