New issue
Advanced search Search tips

Issue 662783 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 147490
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Element with CSS user-select: none should not be included in copied text

Reported by sime.vi...@gmail.com, Nov 7 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

Steps to reproduce the problem:
1. Go to https://output.jsbin.com/fakozu/quiet
2. Select all text on the page
3. Copy-paste it

What is the expected behavior?
The word “cruel” should not be included in the copied text, because it’s contained in a DOM element with CSS user-select: none.

What went wrong?
The word “cruel” is included in the copied text.

Did this work before? N/A 

Chrome version: 54.0.2840.71  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0

Notice how Chrome itself does not visually highlight this word when the users selects the text. The css-ui-4 spec notes that “UAs are encouraged to keep the visual selection consistent with what would get copied to the clipboard when copying.” Chrome goes against this guideline here.

Edge seems to have the same issue, but Firefox and Safari correctly don’t include “cruel” in the copied text.
 

Comment 1 by tkent@chromium.org, Nov 7 2016

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

Comment 2 by yosin@chromium.org, Nov 7 2016

Cc: -yoichio@chromium.org
Owner: yoichio@chromium.org
Status: Assigned (was: Unconfirmed)
Mergedinto: 147490
Status: Duplicate (was: Assigned)

Sign in to add a comment