<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Darwin!<div class=""><br class=""></div><div class="">Adding the SVG MIME type (<font face="Menlo" class=""><span style="font-style: normal;" class="">"image/svg+xml"</span></font>) 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 <font face="Menlo" class="">UTTypeSVG</font> universal type identifier on the platform pasteboard.</div><div class=""><br class=""></div><div class="">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 <span style="font-family: Menlo;" class="">"image/svg+xml"</span> to the list of known UA clipboard types and using the current HTML sanitization algorithm.</div><div class=""><br class=""></div><div class="">— Wenson</div><div class=""><div class=""><pre style="background-color: rgb(255, 255, 255);" class=""><blockquote type="cite" class="">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
<<a href="https://webkit.org/blog/10855/async-clipboard-api/" class="">https://webkit.org/blog/10855/async-clipboard-api/</a>> already added. Thank
you!
* Base Specification Title: Clipboard API and events
<<a href="https://www.w3.org/TR/clipboard-apis/" class="">https://www.w3.org/TR/clipboard-apis/</a>>
* Specification or proposal URL: Explainer here
<<a href="https://docs.google.com/document/d/1Rx7gi01avpRRNYKSpp3U4WQdjery0H0IkX2XxDtfZ8I/edit" class="">https://docs.google.com/document/d/1Rx7gi01avpRRNYKSpp3U4WQdjery0H0IkX2XxDtfZ8I/edit</a>>
Other information:
* <a href="https://www.chromestatus.com/feature/5125790490427392" class="">https://www.chromestatus.com/feature/5125790490427392</a> has more links
* <a href="https://github.com/w3c/editing/issues/305" class="">https://github.com/w3c/editing/issues/305</a> may also be relevant
--
- Darwin Huang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <<a href="http://lists.webkit.org/pipermail/webkit-dev/attachments/20210702/b7d25b65/attachment.htm" class="">http://lists.webkit.org/pipermail/webkit-dev/attachments/20210702/b7d25b65/attachment.htm</a>></blockquote></pre></div></div></body></html>