Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

[BUG] Disable Select #41

Closed
CITguy opened this issue Mar 1, 2018 · 5 comments
Closed

[BUG] Disable Select #41

CITguy opened this issue Mar 1, 2018 · 5 comments
Labels
discussion Extra attention is needed

Comments

@CITguy
Copy link

CITguy commented Mar 1, 2018

FYI: user-select: none; isn't foolproof. While it may prevent direct highlighting, it doesn't prevent selecting through the unselectable content.

I'll let this gif do the talking.

selecting-the-unselectable-10fps

Chrome Version 64.0.3282.167

@atomiks
Copy link
Contributor

atomiks commented Mar 1, 2018

I'm not sure anyone intends to use it to prevent someone copying content? It's mainly for buttons or icons that should be visual without being selectable.

@jreitz-dev
Copy link

Hey @CITguy , the W3 spec has some usefull information on this topic.
They write:

[...] This specification makes no normative requirement about the behavior of the clipboard. however, UAs are encouraged to keep the visual selection consistent with what would get copied to the clipboard when copying. Copying text that does not appear to be selected, or vice versa, is highly confusing to users. [...]

So I don't know if this is the right place to report it.
But thank you for the information 🐈

@Chalarangelo
Copy link
Owner

Could be added as a note that this is not a secure method to prevent copying. I don't think there's a lot of other options about this anyways.

@atomiks atomiks added the discussion Extra attention is needed label Mar 2, 2018
@equinusocio
Copy link
Contributor

...and if you can read it. You can copy (rewrite) it :)

@lock
Copy link

lock bot commented Dec 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for any follow-up tasks.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussion Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants