w3c / clipboard-apis

Clipboard API and events
https://w3c.github.io/clipboard-apis/
Other
143 stars 41 forks source link

Optional data types description seems wrong #200

Open annevk opened 7 months ago

annevk commented 7 months ago

https://w3c.github.io/clipboard-apis/#dom-clipboarditem-supports calls directly into https://w3c.github.io/clipboard-apis/#optional-data-types but I don't understand how type ends up being compared here. This would benefit from a clearer description.

snianu commented 7 months ago

@annevk Thank you for looking into it! I was following the existing algorithms in the spec for MIME type checking, but is there a better way to write that comparison in spec language terms?