[w3c/clipboard-apis] Make it possible to read image/svg+xml from the clipboard (#92)

I get the impression here https://w3c.github.io/clipboard-apis/#reading-from-clipboard that the clipboard format image/svg+xml should be available when reading a data transfer object in the paste event. But I cannot get this to work.
I have verified on Windows that there is indeed an image/svg+xml format on the clipboard, but I cannot see any traces of this when inspecting the clipboardData object.

document.addEventListener('paste', async function (event) {
  event.preventDefault();
  console.log(event.clipboardData.types);
  let clipText = event.clipboardData.getData("image/svg+xml");
console.log(clipText);
}

-- 
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/92

Received on Thursday, 11 July 2019 13:31:49 UTC