Open Bug 685799 Opened 10 years ago Updated 7 months ago
Delete doesn't work on the last contenteditable=false element nested in a contenteditable=true element
Mozilla/5.0 (Windows NT 6.0; rv:7.0) Gecko/20100101 Firefox/7.0 Mozilla/5.0 (X11; Linux x86_64; rv:8.0a2) Gecko/20110907 Firefox/8.0a2 Mozilla/5.0 (X11; Linux x86_64; rv:9.0a1) Gecko/20110831 Firefox/9.0a1 STR: 1. Open the attached test case. 2. Place the caret in front of the comma before the last span.(the caret cannot be placed right before the span because of bug #685452) 3. Press the Delete key twice. Expected Results: The first key press deletes the space before the last span and the second one deletes the last span. Actual Results: The last span (blue letter) cannot be deleted. Workaround: Select the last span then press Delete.
FTR/note2self: this bug is related to layout/generic/nsSelection.cpp. nsFrameSelection::MoveCaret returns NS_ERROR_FAILURE when trying to reach the edge of the editable <div> with cursor keys.
This is still the case in version 62, and probably related to issue 1267897
You need to log in before you can comment on or make changes to this bug.