Re: [Clipboard API] setData description

2011-09-05 Thread Hallvord R. M. Steen
On Mon, 05 Sep 2011 01:33:40 +0200, João Eiras jo...@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

Re: [Clipboard API] setData description

2011-09-05 Thread João Eiras
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

Re: [Clipboard API] setData description

2011-09-05 Thread Hallvord R. M. Steen
On Mon, 05 Sep 2011 12:45:07 +0200, João Eiras jo...@opera.com wrote: Perhaps paste should be emphasized Will be :) -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/