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

Re: [clipboard] Feature detect Clipboard API support?

From: Hallvord Reiar Michaelsen Steen <hsteen@mozilla.com>
Date: Sun, 26 Apr 2015 22:08:50 +0200
Message-ID: <CAE3JC2yzNEJ8V8R1Yu_jEbqj7jpfNn=FihV-sVHAgVv8PjZyUw@mail.gmail.com>
To: "James M. Greene" <james.m.greene@gmail.com>
Cc: Ryan Seddon <seddon.ryan@gmail.com>, public-webapps <public-webapps@w3.org>
On Sun, Apr 26, 2015 at 4:32 PM, James M. Greene <james.m.greene@gmail.com>
wrote:

> They used `Document#queryCommandSupported` and
> `Document#queryCommandEnabled` for feature detection -- the latter
> requiring that there is an active, expanded Selection/Range in the Document
> in order to get a positive (`true`) indicator].


Maybe it's as simple as that..? Test:
http://jsfiddle.net/670s9usk/ :)
-Hallvord
Received on Sunday, 26 April 2015 20:09:17 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:31 UTC