These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:06 pm Advanced search

usecaret property for text

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

usecaret property for text

Postby mykeled123 » Thu Feb 21, 2008 6:45 am

:idea: How about a property for a div or span or something to determine whether it will allow the text to be selected? (without using javascript) :idea:
mykeled123
<h6>
 
Posts: 3
Joined: Thu Feb 21, 2008 6:40 am

Postby zcorpan » Thu Feb 21, 2008 1:31 pm

What's the use case?
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby mykeled123 » Thu Feb 21, 2008 5:44 pm

It would be used if the author of the site did not want people copying copyrighted material.
mykeled123
<h6>
 
Posts: 3
Joined: Thu Feb 21, 2008 6:40 am

Postby mykeled123 » Thu Feb 21, 2008 5:47 pm

In addition, it would be wise to allow this to block viewing source or somehow keep it out of source code, because they could still copy it from source.
mykeled123
<h6>
 
Posts: 3
Joined: Thu Feb 21, 2008 6:40 am

Postby zcorpan » Sat Feb 23, 2008 4:25 pm

Or they could use an old browser that allows selection and view source...

What is sent to the browser is copyable by human. There's no way around it. Disabling selection and view source doesn't stop your text from being copied, it just annoys your users.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest