contenteditable wraps writtent text with inline element like `<span>` or `<font>`

Fixed Issue #13054850

Details

Author
Mateusz S.
Created
Aug 2, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.15063
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Hi,

Steps to reproduce:

  1. Open one of those codepens: https://codepen.io/msamsel/pen/MvexJP https://codepen.io/mlewand/pen/prbYOG?editors=1010.
  2. Select all text by Ctrl+A.
  3. Press Backspace or Delete to remove all text.
  4. Start to type again.

Actual result:

<span> element wraps written text, in case of 2nd example <font> element wraps written text.
On Edge16, there appear also extra attributes such as style="background-color: transparent;" or size=16

Expected result:

There will be no extra inline elements in written text

Tested on Virtual Env

modern.ie - Virtual Box - Win10 with Edge 15 and Edge 16.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Travis L.”

      Changed Assigned To from “Travis L.” to “Anupam S.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “Fixed”

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

    Sign in