Copying HTML to the clipboard doesn't copy background colour for a single element.

Confirmed Issue #10656834 • Assigned to Grisha L.

Details

Author
Sam M.
Created
Jan 25, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
  • Firefox
Found in build #
38.14393
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Head to the following jsfiddle: https://jsfiddle.net/SamMiller/ubm10f69/

Double click on "PURPLE", hit ctrl + c to copy the selection to the clipboard, now paste it into the HTML checker content editable box. The purple background colour isn’t copied. I would expect it to be copied to the clipboard and allow the user to paste with the background colour still intact.

Now make a drag selection from the start of “PURPLE” to the end of “BLUE” so that both “PURPLE” and “BLUE” are selected. Depending on exactly where the drag started from, either both the purple background and the blue background are copied to the clipboard and successfully pasted into the HTML checker box, or just the blue background is copied.

IE11, Firefox, and Edge all have this issue.
Chrome and Safari copy the background colours correctly.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Assigned To to “Grisha L.”

      Changed Status to “Confirmed”

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

    Sign in