Page MenuHomePhabricator

Cursor ends up inside template in Flow mention inspector (and possibly other inline templates)
Closed, ResolvedPublic8 Estimated Story Points

Description

Where you can type, because the template is made up of two siblings.

pasted_file (91×50 px, 1 KB)

Worse still, I can end up inside the template again by cursoring right from the left.

Event Timeline

The second part of the bug (cursoring) only happens when the template is the only element in the paragraph. Test case for ve standalone:

<p><span about="#group1" rel="ve:Alien">Foo</span><a about="#group1" rel="ve:Alien" href="foo">Bar</a></p>

Esanders renamed this task from Cursor ends up inside template in Flow mention inspector to Cursor ends up inside template in Flow mention inspector (and possibly other inline templates).Apr 25 2016, 10:29 PM

Change 287048 had a related patch set uploaded (by Divec):
Handle about groups correctly in getNodeAndOffset

https://gerrit.wikimedia.org/r/287048

Change 287048 merged by jenkins-bot:
Handle about groups correctly in getNodeAndOffset

https://gerrit.wikimedia.org/r/287048

Jdforrester-WMF assigned this task to dchan.
Jdforrester-WMF set the point value for this task to 8.