Bug 249620

Summary: Make ReplaceSelectionCommand to handle empty SPAN replacement
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2022-12-19 17:14:46 PST
Hi Team,

While going through Blink's commit, I came across another commit, which can be merged but the test case is in C++, so it would be bit difficult for myself to do:

Blink Commit - https://chromium.googlesource.com/chromium/src.git/+/cd80804c61b6d9578a633d3546043d03aecdf27b

Webkit GitHub Source - https://github.com/WebKit/WebKit/blob/482b2f4161de044365b2314587b9256c57845fa3/Source/WebCore/editing/ReplaceSelectionCommand.cpp#L1386

Just wanted to raise this bug so we can merge it and if needed.

Thanks!
Comment 1 Radar WebKit Bug Importer 2022-12-26 17:15:15 PST
<rdar://problem/103716446>