W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

Re: [clipboard events] click-to-copy support could be hasFeature discoverable?

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 20 May 2014 11:41:32 +0200
Message-ID: <CADnb78jUgdF_KB2GpvrdY1u=j8fzRjnWXjHjvLuNhiu-nO+wVQ@mail.gmail.com>
To: "Hallvord R. M. Steen" <hsteen@mozilla.com>
Cc: public-webapps <public-webapps@w3.org>
On Mon, May 19, 2014 at 9:21 PM, Hallvord R. M. Steen
<hsteen@mozilla.com> wrote:
> button.onclick = function(){
>     button.dispatchEvent(new ClipboardEvent('copy', {dataType:'text/plain', data:'Hello world'});
>     // did that succeed or not? We don't have event.clipboardData on a clip event object

That should never work as per the other thread. execCommand should
maybe work. And with the various queryCommand* APIs you can do

Received on Tuesday, 20 May 2014 09:41:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:24 UTC