selectionstart and selectionend return incorrect (previous) values in onclick when click was within selection
Reported by
bestch...@gmail.com,
Sep 16 2016
|
|
Issue descriptionChrome 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. |
|
►
Sign in to add a comment |
|
Comment 1 by sheriffbot@chromium.org
, Sep 18 2017