Skip to content

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

Open
@ragoulik

Description

@ragoulik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions