Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClipboardChange event spec: Callout clipboadData (DataTransfer object) would be null in clipboardChange event object #223

Open
ragoulik opened this issue Sep 20, 2024 · 0 comments

Comments

@ragoulik
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants