Bug 94856

Summary: Can't delete first and last characters of a root editable element with display: table
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, arpitabahuguna, bfulgham, brandonstewart, enrica, eric, leviw, webkit-bug-importer
Priority: P2 Keywords: HasReduction, InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Demonstrates the bug none

Ryosuke Niwa
Reported 2012-08-23 14:33:15 PDT
Created attachment 160250 [details] Demonstrates the bug When an root editable element has display:table, we can't delete the first character, and attempting to delete the last character removes the focus from the element. http://crbug.com/107366
Attachments
Demonstrates the bug (260 bytes, text/html)
2012-08-23 14:33 PDT, Ryosuke Niwa
no flags
Ahmad Saleem
Comment 1 2022-08-30 15:48:43 PDT
I am able to reproduce this bug in Safari Technical Preview 152 where I cannot delete "T" within contendeditable, if I place caret after that and press "Delete" / "Backspace" while if I select whole text and delete or take caret from end and do "Delete" / "Backspace" to remove whole, it loses focus. It was fixed in Chrome in this commit: https://src.chromium.org/viewvc/blink?view=revision&revision=162687 In case of Chrome Canary 107, it still loses "Focus" if I delete starting from end but it has "T" as deletable. Firefox Nightly 107 behaves as expected and keep focus and make first character deletable.
Radar WebKit Bug Importer
Comment 2 2022-08-30 20:17:00 PDT
Note You need to log in before you can comment on or make changes to this bug.