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

[Clipboard API] setData description

From: João Eiras <joaoe@opera.com>
Date: Mon, 05 Sep 2011 00:33:40 +0100
To: "public-webapps@w3.org" <public-webapps@w3.org>
Message-ID: <op.v1a42ebn2q99of@coruscant>


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 ?

Thank you.

Received on Sunday, 4 September 2011 23:34:10 UTC

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