On 12/16/16 8:51 AM, Luna wrote:
> Interoperability risk
> Firefox: No public signals
The ClipboardEvent constructor has been shipping in Firefox since at
least 2013.
That said, it looks like it was based on the spec draft at the time [1],
and doesn't match the current spec draft. Specifically, the current
spec draft has:
dictionary ClipboardEventInit : EventInit {
DataTransfer? clipboardData = null;
};
whereas what Firefox is shipping has:
dictionary ClipboardEventInit : EventInit
{
DOMString data = "";
DOMString dataType = "";
};
and inside the constructor creates a DataTransfer with that data and
that dataType.
I've raised
https://github.com/w3c/clipboard-apis/issues/33 because as
currently written in the spec this constructor is pretty much unusable.
-Boris
[1]
https://www.w3.org/TR/2015/WD-clipboard-apis-20150421/ has the
dictionary the way Firefox is shipping it.
https://www.w3.org/TR/2015/WD-clipboard-apis-20151215/ looks like it
changed to the new setup.