[webkit-dev] Request for position: Clipboard API SVG support
wenson_hsieh at apple.com
Fri Aug 13 08:23:48 PDT 2021
Adding the SVG MIME type ("image/svg+xml") to the list of web-safe clipboard types (currently plain text, URLs, and HTML) seems reasonable, provided that the UA is able to sanitize the SVG payload (similar to what we do for HTML, currently). On Cocoa platforms, this would probably be bridged to and from the OS in the form of (sanitized) data corresponding to the UTTypeSVG universal type identifier on the platform pasteboard.
As an aside — since SVG documents are parsed using the XML parser as opposed to the HTML parser, supporting SVG as a web-safe clipboard type will be a bit more involved than simply adding "image/svg+xml" to the list of known UA clipboard types and using the current HTML sanitization algorithm.
> Looking for a position on adding svg support for the async clipboard API
> (ex. `navigator.clipboard.write`), in a similar manner to the HTML support
> <https://webkit.org/blog/10855/async-clipboard-api/ <https://webkit.org/blog/10855/async-clipboard-api/>> already added. Thank
> * Base Specification Title: Clipboard API and events
> <https://www.w3.org/TR/clipboard-apis/ <https://www.w3.org/TR/clipboard-apis/>>
> * Specification or proposal URL: Explainer here
> <https://docs.google.com/document/d/1Rx7gi01avpRRNYKSpp3U4WQdjery0H0IkX2XxDtfZ8I/edit <https://docs.google.com/document/d/1Rx7gi01avpRRNYKSpp3U4WQdjery0H0IkX2XxDtfZ8I/edit>>
> Other information:
> * https://www.chromestatus.com/feature/5125790490427392 <https://www.chromestatus.com/feature/5125790490427392> has more links
> * https://github.com/w3c/editing/issues/305 <https://github.com/w3c/editing/issues/305> may also be relevant
> - Darwin Huang
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20210702/b7d25b65/attachment.htm <http://lists.webkit.org/pipermail/webkit-dev/attachments/20210702/b7d25b65/attachment.htm>>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev