Bug 136629 - In ContentEditable when backspacing from one paragraph to the previous one removes all contenteditable="false" elements
Summary: In ContentEditable when backspacing from one paragraph to the previous one re...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.9
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-08 07:13 PDT by Pat O'Callaghan
Modified: 2022-05-31 20:14 PDT (History)
4 users (show)

See Also:


Attachments
Test case showing the ContentEditable backspace bug (400 bytes, text/html)
2014-09-08 07:13 PDT, Pat O'Callaghan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pat O'Callaghan 2014-09-08 07:13:05 PDT
Created attachment 237783 [details]
Test case showing the ContentEditable backspace bug

FIREFOX 32 - PASS
CHROME 37.0.2062.94 - PASS
SAFARI 7.0.6 (9537.78.2) - FAIL

When backspacing between two paragraphs and the second paragraph contains elements with contenteditable=false, these elements are deleted.

STEPS TO REPRODUCE
1. Create multiple paragraphs within a contenteditable element
2. Within one of the paragraphs create some contenteditable=false elements.
3. Place your cursor at the start of the second paragraph
4. Press Backspace

EXPECTED RESULTS
The two paragraphs should join to become a single paragraph with all of the original content

WHAT ACTUALLY HAPPENS
The two paragraphs join to become a single paragraph but all content from the contenteditable=false element forwards is deleted.
Comment 1 Ahmad Saleem 2022-05-31 15:26:08 PDT
I am unable to reproduce the following in Safari 15.5 on macOS 12.4 using attached test case. Thanks!
Comment 2 Alexey Proskuryakov 2022-05-31 20:14:49 PDT
Thank you for checking, I'm also unable to reproduce.