Re: [w3c/clipboard-apis] Make async clipboard APIs (read/write) to sanitize interoperably with setData/getData for text/html (#150)

> Converting CSS rules to inline style is important so that the pasted content won't adversely affect the rest of the document.

Seems a good idea in the browser's native implementation of "pasting" into an editable element, but not when a script wants to get the content from the clipboard Api. It's up to the js developer to manage these merge / conflict rules.

Maybe you should distinguish between the "sanitize" algorithm (used by the clipboard Api) and the "default paste" algorithm? 

-- 
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/150#issuecomment-973312315

Received on Thursday, 18 November 2021 22:09:16 UTC