- From: Rakesh Goulikar <notifications@github.com>
- Date: Fri, 20 Sep 2024 06:21:23 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 20 September 2024 13:21:27 UTC
Following is the interface for a clipboard event: ``` interface ClipboardEvent : Event { constructor(DOMString type, optional ClipboardEventInit eventInitDict = {}); readonly attribute DataTransfer? clipboardData; }; ``` To ensure spec is not open to interpretation by UAs, an explicit mention that `clipboadData` (DataTransfer object) would be null in clipboardChange event: - 'clipboardchange' event would only indicate that system clipboard has changed. And clipboardData for this event will be set to null (Web developers are expected to use Async clipboard read API to get the clipboard data.). This ensures the lightweight nature of the event. - Web developers should continue to use Async clipboard read API to get the clipboard data. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/223 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/issues/223@github.com>
Received on Friday, 20 September 2024 13:21:27 UTC