Re: [w3c/editing] Should deleting cell's content on a table inside a contenteditable area imply the whole table has to be deleted ? (#163)

> Ok, but that seems like a slightly different case, right? In the case you showed above, the user was selected all contents of the table in one operation and then hits delete/backspace, the entire thing is gone. If the user instead selected the contents of individual cells and deletes them individually (before refilling), the same is not happening.

Yes, it's a different case indeed. I was more interested on the behavior of uses cases that doesn't involve selection. I used selection to illustrate with pictures the different use case (table content vs table structure), I'm sorry this created sort of confusion. As I said, I'll sent a PR with some test so that the use case and expected behavior are clearer. 

> Btw, I didn't try all your tests, but in Firefox 59 on Linux, in case 2, I get different results. And the results also differ between using backspace and delete in that case.

I'm using Firefox 59 on Linux, what are those different results you're getting ? I agree that behavior is different when using backspace or delete. 

About the extra space, I see it in Firefox and Edge, but not in Chrome. I think it's related to the indentation of the html, but not related at all with this issue.

> Another test that you did not include -- select from the beginning of the first table cell to the end of "after" fails because it refuses to select more than the table contents. And even that it does rather badly -- if I accidentally move the mouse a bit downward during the selection, the selection goes no further, even if I move the mouse back up to try to select the remaining table cells.

Yes, I noticed such behavior in both, Firefox and Edge. I wonder if that's intentional, but I'd say it is. In any case, another interoperability issue with Chrome and Safari. Anyway, I didn't want to focus so much on selection in this issue. As I said, my main concern here is how we should handle either backspace or delete (should both have the same behavior ?) and whether or not delete the table structure. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/163#issuecomment-388343940

Received on Friday, 11 May 2018 12:02:02 UTC