Bug 136629

Summary: In ContentEditable when backspacing from one paragraph to the previous one removes all contenteditable="false" elements
Product: WebKit Reporter: Pat O'Callaghan <patocallaghan>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, enrica, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.9   
Attachments:
Description Flags
Test case showing the ContentEditable backspace bug none

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.