Open Bug 1518606 Opened 6 years ago Updated 2 years ago

Backspace fails to remove linebreak and <span> gets duplicated inside contenteditable <div>

Categories

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

60 Branch
defect

Tracking

()

Tracking Status
firefox64 --- affected
firefox65 --- affected
firefox66 --- affected

People

(Reporter: lafleur.justin, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [h2review-noted])

Attachments

(1 file)

Attached file firefoxContentEditableBug.html (deleted) —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Firefox/60.0

Steps to reproduce:

  1. Open the attached file in Firefox
  2. Place your cursor at the start of the second line
  3. Hit backspace many times

Actual results:

The backspace action fails and the span node with class "dontCloneMe" is duplicated in the document as many times as backspace was hit.

Expected results:

The linebreak should have been removed and the text from the p tag should have merged with the text from the list. No extra "dontCloneMe" span nodes should be created.

Same as chrome.

Reproducible, adding the component in order to involve the development team.

Status: UNCONFIRMED → NEW
Component: Untriaged → Editor
Ever confirmed: true
Product: Firefox → Core
Priority: -- → P3

This resembles Bug 1621592 where <p> inside <span> can't merge with the parent and instead creates a clone of the parent.

Whiteboard: [h2review-noted]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: