Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipboard API SVG support #549

Open
dway123 opened this issue Jul 3, 2021 · 3 comments
Open

Clipboard API SVG support #549

dway123 opened this issue Jul 3, 2021 · 3 comments

Comments

@dway123
Copy link

dway123 commented Jul 3, 2021

Request for Mozilla Position on an Emerging Web Specification

Other information

@annevk
Copy link
Contributor

annevk commented Jul 21, 2021

Now that https://wicg.github.io/sanitizer-api/ is further along, sanitization might no longer be that hard to actually define?

cc @evilpie @mozfreddyb

@annevk
Copy link
Contributor

annevk commented Sep 29, 2021

@dway123 also, where are the details defined for navigator.clipboard.write()? Would you allow any arbitrary byte sequence to be tagged as image/svg+xml or does it have to conform to some set of rules?

@dway123
Copy link
Author

dway123 commented Sep 29, 2021

I think the current Chromium implementation allows for any arbitrary byte sequence to be tagged as image/svg+xml (like with HTML/image/text implementations), but then sanitizes the content as if it's SVG. This seems consistent with the navigator.clipboard.write() spec, which doesn't require item to conform to some set of rules.

@mkruisselbrink for more comment, as I'm no longer active on Chromium now. (Thanks for all the collaboration and questions on clipboard, @annevk)

@zcorpan zcorpan changed the title Request for position on Clipboard API SVG support Clipboard API SVG support May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants