New issue
Advanced search Search tips

Issue 727199 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

selectionStart and selectionEnd attributes of a textarea HTML element are not getting properly updated in Chrome 58 for DELETE, BACKSPACE & CTRL+X keys.

Reported by babanpre...@comprotechnologies.com, May 29 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
https://jsfiddle.net/babanpreet/5zwz80s0/7/
1. Click in the Text area. "«expression»" will get selected automatically. At this time the value of selectionStart and selectionEnd attribute of text area is 4 & 16 respectively.
2. Press Delete or Backspace or Ctrl+X key. The caret will be placed before first comma (,) and the value of selectionStart and selectionEnd is 4.
3. Press Tab to loose focus from text area
4. Press Shift Tab to give focus back to text area. The text from caret position 4 to 16 gets selected as the value of selectionStart is 4 and selectionEnd is 16. 

What is the expected behavior?
Ideally no text should be selected and caret should be at position 4. This issue occurs only in Chrome 58.

What went wrong?
selectionStart and selectionEnd variables of textarea HTML element are not getting updated properly.

Did this work before? Yes 58

Chrome version: 58.0.3029.110  Channel: stable
OS Version: 10.0
Flash Version:
 
Components: -Blink Blink>Editing

Comment 2 by yosin@chromium.org, May 30 2017

Components: -Blink>Editing Blink>Forms>Textarea Blink>Forms>Text
Status: Fixed (was: Unconfirmed)
Fixed by patch[1]


[1] http://crrev.com/2878613002 INPUT/TEXTAREA elements: Fix incorrect selectionStart/selectionEnd values after blur

Comment 3 by tkent@chromium.org, May 30 2017

Mergedinto: 714425
Status: Duplicate (was: Fixed)

Sign in to add a comment