Closed Bug 1441670 Opened 6 years ago Closed 6 years ago

Backspace & Delete doesn't work correctly on nested contenteditable=false elements

Categories

(Core :: DOM: Editor, defect)

59 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 685799

People

(Reporter: tomxor, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Steps to reproduce:

This is a duplicate of this 10 year old bug 439808 that seems to have re-emerged (I don't have permission to re-open)...

When nesting inline non-editable elements inside of editable ones backspace and delete do not delete the element (it is however possible to delete by selecting all and deleting):

<div contenteditable=true>foo <span contenteditable=false>delete me</span> bar</div>


Actual results:

cannot delete the "delete me" element by pressing backspace


Expected results:

Should be deleted
Component: Untriaged → Editor
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.