- From: mbrodesser <notifications@github.com>
- Date: Wed, 08 Dec 2021 03:55:37 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 8 December 2021 11:55:50 UTC
@mbrodesser commented on this pull request. > + Creates a new {{ClipboardItem}} object. <var>items</var> are used to fill its MIME types and [=Promise=]s to [=Blob=]s or {{DOMString}}s corresponding to the MIME types, <var>options</var> can be used to fill its {{ClipboardItemOptions}}, + as per the example below. - readonly attribute PresentationStyle presentationStyle; - readonly attribute long long lastModified; - readonly attribute boolean delayed; + <pre class="example javascript" highlight=js> + const format1 = 'text/plain'; + const promise_text_blob = Promise.resolve(new Blob(['hello'], {type: format1})); + const clipboardItemInput = new ClipboardItem( + {[format1]: promise_text_blob}, + {presentationStyle: "unspecified"}); + </pre> > For some reason `domintro` doesn't work. Is there anything else that I need to do besides `<dl class=domintro>`? Did you add `<dt>` and `<dd>` elements (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl)? See also the code of of `domintro` box used at https://fetch.spec.whatwg.org/#headers-class for an example. -- 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/pull/158#discussion_r764799079
Received on Wednesday, 8 December 2021 11:55:50 UTC