Bug 173144

Summary: Not possible to remove the text inside the table cell when using backspace outside the table cell
Product: WebKit Reporter: Javier Fernandez <jfernandez>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: darin, enrica, jfernandez, rniwa, sam, wenson_hsieh
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.chromium.org/p/chromium/issues/detail?id=731161
https://bugs.webkit.org/show_bug.cgi?id=24246
https://bugs.webkit.org/show_bug.cgi?id=24236
Attachments:
Description Flags
Test case to reproduce the issue none

Description Javier Fernandez 2017-06-09 03:14:02 PDT
What steps will reproduce the problem?
(1) Load the attached test case
(2) Put the cursor at the end of the text bellow the table
(3) Hit backspace until delete the while line of text
(4) Hit backspace again
(5) Hit backspace again
(6) Hit backspace again

What is the expected result?
After step (4) the caret should be just after the last cell of the table above. 
After step (5) all the cells should be selected (according to https://webkit.org/b/24246).
After step (6) the whole table should be deleted 

What happens instead?
After step (4) the caret is placed inside the last cell of the table, which is empty in this case. 
After step (5) the caret is placed inside the last cell (empty)
After step (6) nothing happens
Comment 1 Javier Fernandez 2017-06-09 03:15:15 PDT
This seems an interoperability issue, since Firefox and IE/Edge behave quite different in the scenario described in the attached test case.
Comment 2 Javier Fernandez 2017-06-09 03:15:35 PDT
Created attachment 312417 [details]
Test case to reproduce the issue
Comment 3 Javier Fernandez 2017-06-09 03:40:38 PDT
According to 24236, hitting backspace on an empty cell should move the caret to the adjacent cell.