Re: [w3ctag/design-reviews] Feature detection for supported clipboard formats (Issue #901)

Hi there, 

We looked at this today in a breakout during our London F2F. We overall think the feature is a good addition to the web platform and a low hanging fruit for improving DX.
  
One concern that came up is that `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.
  
Btw we had a lot of trouble reviewing this feature because the explainer was a GitHub issue, and the only way to see what was actually proposed was to read the spec. It wou;d be helpful for both us and others to have [an explainer](https://tag.w3.org/explainers/), even if brief.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/901#issuecomment-1905805024
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/901/1905805024@github.com>

Received on Tuesday, 23 January 2024 11:04:03 UTC