- From: Ryosuke Niwa <notifications@github.com>
- Date: Fri, 18 Jun 2021 16:52:20 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 18 June 2021 23:52:57 UTC
> @marcoscaceres : On macOS (and on windows I think), browsers that are invoked with the clipboard operation `e.clipboardData.setData('application/mathml+xml', '<math><mfrac><mn>3</mn><mn>5</mn></mfrac></math>');` just put this content as an exotic `org.mozilla.custom-clipdata` or similarly private types with Chrome or Safari. > Test page here: http://direct.hoplahup.net/tmp/tryclipboardOps.html . > You will also see that HTML comes through. So on macOS and other Apple platforms, there is system declared UTI for MathML or SVG. As a result, this isn't really possible in a way that's interoperable across different applications: https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html#//apple_ref/doc/uid/TP40009259 We could declare it as a generic XML content but I don't think that'd help the situation. -- 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/141#issuecomment-864322885
Received on Friday, 18 June 2021 23:52:57 UTC