New issue
Advanced search Search tips

Issue 725139 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 714425
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

selectionStart and selectionEnd are not being updated correctly for specific keys (e.g. enter, delete..)

Reported by mai...@gliesche.net, May 22 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
There are different ways to reproduce this problem:

Example 1)

1. Hit enter three times
2. Click the button "show selection start / end"
3. Wrong values are being displayed - start 1 / end: 1

Example 2)

1. Type 123 into the textarea
2. Click the button "show selection start / end"
3. This should show the correct values - start 3 / end: 3
4. Hit delete three times and then click button again

You can also find a codepen to this problem here: https://codepen.io/gliesche/pen/JNwEME

What is the expected behavior?
Example 1)
The correct values would be:
start: 3, end: 3

Example 2)
The correct values would be:
start: 0, end: 0

What went wrong?
selectionStart and selectionEnd are not being updated correctly

Did this work before? Yes 57

Does this work in other browsers? Yes

Chrome version: 58.0.3029.110  Channel: stable
OS Version: OS X 10.11.6
Flash Version: 

Cannot figure out for which keys these values are being updated correctly and for which they are not. This issue might be related to:
https://bugs.chromium.org/p/chromium/issues/detail?id=721217
 
testcase.html
551 bytes View Download

Comment 1 by tkent@chromium.org, May 22 2017

Components: Blink>Editing>Selection
Mergedinto: 714425
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment