Open Bug 1416147 (formatting-non-editable-nodes) Opened 7 years ago Updated 4 months ago

non-editable nodes are moved outside new element when formating nodes across the non-editable node

Categories

(Core :: DOM: Editor, defect)

56 Branch
defect

Tracking

()

People

(Reporter: peter, Unassigned)

References

(Blocks 2 open bugs, )

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
Severity: normal → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
Summary: Design mode relocates ContentEditable = false spans when making surrounding text bold or italic. → non-editable nodes are moved outside new element when formating nodes across the non-editable node
Alias: formatting-non-editable-nodes
Priority: P3 → --
You need to log in before you can comment on or make changes to this bug.