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

Re: [clipboard] Semi-Trusted Events Alternative

From: Hallvord R. M. Steen <hsteen@mozilla.com>
Date: Mon, 15 Sep 2014 13:25:45 -0700 (PDT)
To: "James M. Greene" <james.m.greene@gmail.com>
Cc: Ben Peters <Ben.Peters@microsoft.com>, Perry Smith <pedzsan@gmail.com>, public-webapps <public-webapps@w3.org>
Message-ID: <1550773317.25765516.1410812745562.JavaMail.zimbra@mozilla.com>
----- Original Message -----
From: "James M. Greene" <james.m.greene@gmail.com>

>> So if, in response to a click event your document.execCommand('copy') call
>> returns false, you will have to fall back on the Flash clipboard widgets.
>> Might be all you need?

> That may be true in the modern browsers that compliant with the Editing
> spec[1] but it certainly won't work for trying to detect the need for Flash
> fallbacks in older browsers as some of them will throw an Error instead of
> returning false.

In that case you could use try...catch for the same detection, no?
Received on Monday, 15 September 2014 20:26:13 UTC

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