New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 705526 link

Starred by 4 users

Issue metadata

Status: Duplicate
Merged: issue 147490
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

user-select: none text is not selected by mouse highlight but is copied

Reported by stuart.l...@gmail.com, Mar 27 2017

Issue description

Chrome Version       : 56.0.2924.76
OS Version: Ubuntu 16.04
URLs (if applicable) : http://jsbin.com/jiyonip/edit?html,css,output
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
  Firefox 52.0.1: OK ($ sign is not copied)

What steps will reproduce the problem?
1. Go to http://jsbin.com/jiyonip/edit?html,css,output
2. Select the code text in the pre element by dragging with the mouse
3. Observe that the $ symbols are not selected
4. Hit Ctrl-C to copy selected text
5. Focus the text area and hit Ctrl-V to paste.

What is the expected result?

The text should be copied and pasted, and the $ signs, which were not selected, should not be part of the copy/pasted text.

What happens instead of that?

The second $ sign, which is not selected but is between selectable bits of text, *is* copied. It is not in Firefox.

UserAgentString: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36



 

Comment 1 by tkent@chromium.org, Mar 27 2017

Cc: yoichio@chromium.org
Components: Blink>Editing>Selection

Comment 2 by yosin@chromium.org, Mar 29 2017

Status: Available (was: Unconfirmed)

Comment 3 by yosin@chromium.org, Jun 27 2017

 Issue 736723  has been merged into this issue.

Comment 4 by hu...@opera.com, Jul 20 2017

Cc: hu...@opera.com
Minimal repro:

0<span style="user-select:none;">123</span>45

CTRL+A

alert(window.getSelection().toString()) // Or CTRL+C, CTRL+V

Actual: 012345
Expected: 045

Comment 5 by hu...@opera.com, Jul 20 2017

Mergedinto: 147490
Status: Duplicate (was: Available)

Sign in to add a comment