Contenteditable - MS Edge 41 adds a bunch of garbage inline styles to copy/pasted element

Confirmed Issue #14591438 • Assigned to Grisha L.


Jakub Ś.
Nov 9, 2017
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 6 people

Sign in to watch or report this issue.

Steps to reproduce

  1. Put attached file on server and open it in Edge 41 (Edge 40 works fine)
  2. Select [ABCD] with Ctrl+A
  3. Ctrl+C to copy selection
  4. Ctrl+V to paste copied selection

Result (can be viewed with dev-tools): Edge 41 adds a bunch of garbage inline styles. This is a recent regression. Such problem didn’t occur in Edge 40.

Result HTML:
<p style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; font-family: sans-serif,Arial,Verdana,&amp;quot;Trebuchet MS&amp;quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; margin-bottom: 13px; margin-left: 0px; margin-right: 0px; margin-top: 13px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">ABCD<br></p>


1 attachment

Comments and activity

  • Guys this is a recent regression in Edge and a very serious one. Please put a higher priority on this ticket.

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Assigned To to “Grisha L.”

  • Same happens when regular html is copy/paste or drag and drop to contenteditable element , lots of inline styles which are not in the source html are added, take a look on

  • Microsoft Edge Team

    Changed Status to “Confirmed”

    Changed Assigned To from “Grisha L.” to “Amit J.”

  • A year later, in Edge 44.17763.1.0, the garbage styles are still there.

  • Microsoft Edge Team

    Changed Assigned To from “Amit J.” to “Grisha L.”

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

Sign in