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

it seems to no longer throw an error for `image/svg+xml` but when testing it did not let me paste it into powerpoint or the finder (while it works fine with a png)

I tested via this code

```js
setTimeout(async () => {
try {
  const imgURL = 'test.svg';  // using test.png works 
  const data = await fetch(imgURL);
  const blob = await data.blob();
  await navigator.clipboard.write([
    new ClipboardItem({
      [blob.type]: blob
    })
  ]);
  console.log('Image copied.');
} catch(e) {
  console.error(e, e.message);
}
}, 1000);
```

is that supposed to work?

tested in chrome 95

-- 
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#issuecomment-965811423

Received on Wednesday, 10 November 2021 22:41:51 UTC