Clipboard API - possible to overwrite mime types (with setData) on `paste` event

Issue #14038089 • Assigned to Steven K.


Krzysztof K.
Oct 2, 2017
This issue is public.
Found in
  • Microsoft Edge
Standard affected
Clipboard API and events

Found in build #
Reported by 5 people

Sign in to watch or report this issue.

Steps to reproduce

According to specs, on both drop and paste events the dataTransfer store should be in readonly mode:

also it works this way in all other major browsers (Chrome, Firefox, Safari). However, in Edge the behaviour is quite different and it is possible to set/overwrite dataTransfer store mime types on paste event (see demo -

There are two issues here (both can be reproduced on the above demo):

  • Possible to overwrite existing (in dataTransfer store) mime type on paste event.
  • When setting non-existing mime type, other ones will be cleared/emptied, e.g. setting text/html on paste will make text/plain empty.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in