Setting `text/html` via 'dataTransfer.setData' results in two html types in clipboard

Duplicate Issue #14372970 • See Issue #14372529

Details

Author
Krzysztof K.
Created
Oct 25, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Duplicates
See progress on Bug #14372529
Found in build #
16.16257
Reports
Reported by 5 people

Sign in to watch or report this issue.

Steps to reproduce

When HTML is copied with e.g. CTRL + C the data put inside clipboard related to copied content is contained inside HTML Format type. However, if data is set manually via dataTransfer.setData( 'text/html , ... ), clipboard contains two formats: HTML Format and text/html.

I added two screenshot showing difference in clipboard types when CTRL + C and manual setData used.

Other browsers:
In Chrome, there is always only HTML Format.
In Firefox there are always two formats: HTML Format and text/html.

So other browsers behavior is consistent and the data types in clipboard are always the same no matter how HTML was inserted into the clipboard.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Status to “Duplicate”

  • This bug has marked as duplicate. Please follow the parent issue to get new updates.

  • Hello,

    Thank you for providing this information about the issue. We have confirmed the problem is fixed in build 17017. Please post any reply in the original case #14372529.

    Best Wishes,
    The MS Edge Team

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

Sign in