W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: [Clipboard API] setData description

From: Hallvord R. M. Steen <hallvord@opera.com>
Date: Mon, 05 Sep 2011 12:44:09 +0200
To: public-webapps@w3.org
Message-ID: <op.v1bz3vbta3v5gv@hr-opera.oslo.opera.com>
On Mon, 05 Sep 2011 01:33:40 +0200, João Eiras <joaoe@opera.com> wrote:

> The description for DataTransfer.setData [1] says: "Calling setData()  
> from a paste event handler must not modify the data that is inserted,  
> and must not modify the data on the clipboard."
> That second phrase is very confusing. Isn't it the objective of  
> listening to cut/copy events, to possibly prevent the default action and  
> set the data calling setData, therefore changing clipboard contents ?

Yes, but not *paste* events. Pasting should never alter the data on the  
clipboard. How can I phrase it more clearly?

> [1]  
> http://dev.w3.org/2006/webapi/clipops/clipops.html#widl-clipboardData-setData-boolean-DOMString-type-DOMString-data

Hallvord R. M. Steen, Core Tester, Opera Software
http://www.opera.com http://my.opera.com/hallvors/
Received on Monday, 5 September 2011 10:43:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:23 UTC