Re: [w3c/clipboard-apis] Where would one get a DataTransfer to hand to the ClipboardEvent constructor? (#33)

I should also add that the example in the spec at https://w3c.github.io/clipboard-apis/#clipboard-event-interfaces says:

    var pasteEvent = new ClipboardEvent('paste');
    pasteEvent.clipboardData.items.add('My string', 'text/plain');

which would throw if the spec were actually implemented as currently written...

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/33#issuecomment-267674467

Received on Friday, 16 December 2016 19:21:32 UTC