@@ -1803,7 +1803,7 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
1803
1803
1804
1804
On MacOS, follow the convention described below:
1805
1805
1806
- 1. Assign NSHTMLPboardType to |wellKnownFormat|.
1806
+ 1. Assign NSPasteboardTypeHTML to |wellKnownFormat|.
1807
1807
1808
1808
On Linux, ChromeOS, and Android, follow the convention described below:
1809
1809
@@ -1823,6 +1823,20 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
1823
1823
1824
1824
1. Assign "image/png" to |wellKnownFormat|.
1825
1825
1826
+ 1. Else, if |mimeType|'s [=MIME type/essence=] is "image/svg+xml", then
1827
+
1828
+ On Windows, follow the convention described below:
1829
+
1830
+ 1. Assign CFSTR_MIME_SVG_XML to |wellKnownFormat|.
1831
+
1832
+ On MacOS, follow the convention described below:
1833
+
1834
+ 1. Assign UTTypeSVG to |wellKnownFormat|.
1835
+
1836
+ On Linux, ChromeOS, and Android, follow the convention described below:
1837
+
1838
+ 1. Assign "image/svg+xml" to |wellKnownFormat|.
1839
+
1826
1840
1. Return |wellKnownFormat|.
1827
1841
1828
1842
</div> <!-- algorithm -->
@@ -1850,15 +1864,19 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
1850
1864
1851
1865
1. Else, if |osFormatName| "PNG", then set |mimeTypeString| to "image/png".
1852
1866
1867
+ 1. Else, if |osFormatName| CFSTR_MIME_SVG_XML, then set |mimeTypeString| to "image/svg+xml".
1868
+
1853
1869
1854
1870
On MacOS, follow the convention described below:
1855
1871
1856
1872
1. If |osFormatName| is NSPasteboardTypeString, then set |mimeTypeString| to "text/plain".
1857
1873
1858
- 1. Else, if |osFormatName| is NSHTMLPboardType , then set |mimeTypeString| to "text/html".
1874
+ 1. Else, if |osFormatName| is NSPasteboardTypeHTML , then set |mimeTypeString| to "text/html".
1859
1875
1860
1876
1. Else, if |osFormatName| NSPasteboardTypePNG, then set |mimeTypeString| to "image/png".
1861
1877
1878
+ 1. Else, if |osFormatName| UTTypeSVG, then set |mimeTypeString| to "image/svg+xml".
1879
+
1862
1880
1863
1881
On Linux, ChromeOS, and Android, follow the convention described below:
1864
1882
@@ -1868,6 +1886,8 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
1868
1886
1869
1887
1. Else, if |osFormatName| "image/png", then set |mimeTypeString| to "image/png".
1870
1888
1889
+ 1. Else, if |osFormatName| "image/svg+xml", then set |mimeTypeString| to "image/svg+xml".
1890
+
1871
1891
1872
1892
1. Let |mimeType| be the result of [=parsing a MIME type=] given |mimeTypeString|.
1873
1893
0 commit comments