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

>  I was confused by the titles of the cases. So basically you are giving examples of how selection happened and then what happens if the user hits del or backspace, right?

Sorry about the confusion that some of the examples may have created; I'll try to provide Web Platform Tests to be more explicit about each case and the expected behavior.  Yes, my intention was to show the different behavior when hitting backspace on each selection. I'm specially interested on case1, though, where I tend to think Firefox and Edge have better (more conservative) behavior. 

My argument in favor of Firefox's and Edge's behavior in Case 1 is that deleting the  table structure when the last cell's content is deleted is too aggressive.  Consider the case of an user deleting content cell by cell, just to replace it with new content, and once it reaches the last cell the whole table is deleted.  

The rest of the cases show a way where use consciously selects the whole table so that i indicates explicitly the desire of delete it (including the table's structure).

I think some Browsers, (don't recall now but I can do some test to figure it out) selects the table structure after hitting backspace after deleting the last non-empty cell. I think that allows the user to avoid accidentally deleting 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-388086691

Received on Thursday, 10 May 2018 15:21:45 UTC