Re: [w3c/editing] Should we modify the clipboard API spec to match Safari's behavior for HTML-referenced media? (#285)

@rniwa I agree.  If the clipboard contains two formats, text and html, and the html references an image, the author would see three DataTransferItems in pasteEvent.clipboardData.items: a string for text, a string for html, a file for the referenced image.

It looks identical to when the clipboard contains three formats: text, html and an image.  The difference is in the latter case the image should represent a screen snip of what was copied, while in the former case the image represents just a part of the HTML document.

The author should be able to distinguish these cases and enumerate the available contents on the clipboard separately from their subresources.

What do you think about the other part of my question?  Is Safari leaking blobs with its current approach?

-- 
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/editing/issues/285#issuecomment-795027897

Received on Wednesday, 10 March 2021 07:38:48 UTC