Steps to reproduce
Copy the ‘Copy me’ text
Observe the error caused by using the ‘text/csv’ mimetype and the custom mimetype
Paste after the ‘Copy me’ text
Observe the paste to not happen
Success by removing the text/html mimetype:
- Disable the ‘text/html’ mimetype by commenting the line
- Copy the ‘Copy me’ text again
- Ignore the errors caused by using the ‘text/csv’ mimetype and the custom ‘application/vnd.acme.custom’ mimetype
- Observe the contents of the text/plain mimetype being pasted, as expected
Setting any mimetype should never throw an error, but place the data on the dataTransfer, and having it available for pasting.
Setting a mimetype should append it to the list of data, not removing earlier set data.
In short, the recommendation (https://w3c.github.io/clipboard-apis/) should be followed.
Google Chrome allows any mimetype to be set.
Firefox only allows the text/plain and the text/html mimetypes to be populated. There is a reported bug https://bugzilla.mozilla.org/show_bug.cgi?id=860857 addressing this issue.
Dev Channel specific:
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Mara P.”
Changed Assigned To to “Venkat K.”
Changed Assigned To to “Amit J.”
Changed Status to “Confirmed”
Changed Assigned To from “Amit J.” to “IE S.”
Changed Status from “Confirmed” to “External”
Thank you for providing this information about the issue. We have confirmed the problem, and we are working on a solution for a future build of Edge. We are presently tracking this issue as a duplicate of an existing internal bug report. We look forward to additional feedback you may have on how we can improve Microsoft Edge.
The MS Edge Team