Open Bug 1416147 Opened 3 years ago Updated 3 years ago

Design mode relocates ContentEditable = false spans when making surrounding text bold or italic.

Categories

(Core :: DOM: Editor, defect, P3)

56 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: peter, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20171024165158

Steps to reproduce:

With HTML of
Make this text bold <span contenteditable="false">CaseID</span> when the contentEditable is false.<br>
and the browser in design mode, select the text and try to make it bold.


Actual results:

The contentEditable span is relocated to the end of the sentence.


Expected results:

The span should maintain its position in the sentence, between the words "bold" and "when".
Summary: Bold text ContentEditable = false moves the text → Design mode relocates ContentEditable = false spans when making surrounding text bold or italic.
Also happens when text is made italic. Does not happen if bold/italic is removed.
Component: Untriaged → Editor
Product: Firefox → Core
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.