[w3c/clipboard-apis] `supports` should take a dictionary instead of a DOMString as argument for readability (Issue #211)

From [TAG review feedback](https://github.com/w3ctag/design-reviews/issues/901#issuecomment-1905805024), 
"`supports()` is a rather generic name, but the type of support being tested is very specific. This could hinder both learnability and future extensibility. One way to address that would be to adopt a dictionary argument (e.g. `ClipboardItem.supports({type: "image/webp"})`). If it later becomes clear that MIME type is the primary criteria that support queries are used for, a string argument could be supported as an overloaded shortcut."

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/211
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/issues/211@github.com>

Received on Thursday, 25 January 2024 22:25:47 UTC