New issue
Advanced search Search tips

Issue 647758 link

Starred by 4 users

Issue metadata

Status: Archived
Owner: ----
Closed: Sep 2017
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

selectionstart and selectionend return incorrect (previous) values in onclick when click was within selection

Reported by bestch...@gmail.com, Sep 16 2016

Issue description

Chrome Version       : 52.0.2743.116 (Official Build) (64-bit)
URLs (if applicable) : http://jsfiddle.net/b3ypg2rp/
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari: FAIL
    Firefox: OK
         IE: FAIL
IE fails according to: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/3296786/

What steps will reproduce the problem?
(1) Select text in an <input type="text">
(2) Click within the selection
(3) read values from within a click event handler

What is the expected result?
selectionStart and selectionEnd are both equal to the new cursor location

What happens instead?
selectionStart and selectionEnd are equal to the start and end of the previous selection

Please provide any additional information below. Attach a screenshot if
possible.

 
Screen Shot 2016-09-16 at 2.54.44 PM.png
882 KB View Download
Project Member

Comment 1 by sheriffbot@chromium.org, Sep 18 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment