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, I'm working again on this issue, trying to get some kind of consensus here (even if that doesn't imply a specific statement in the spec). From https://github.com/w3c/editing/issues/163#issuecomment-309667547 I've understood that there were some changes in the spec regarding this issue; could anybody please tell me which ones ? 

Anyway, I'll describe here current behavior using four of the main browsers with a simple case:

```
<div contenteditable>
  <div>
    before
    <table border=1>
      <tbody>
        <tr><td>1</td><td>2</td><td>3</td></tr>
      </tbody>
    </table>
    after
  </div>
</div>
```

**Case 1: Selecting content from the first cell to the last one**

<table>
<tr><td colspan="2">Firefox 59</td><td colspan="2">Edge 16</td><td colspan="2">WebKit Preview and Chrome 68</td></tr>
<tr><td><img src="https://user-images.githubusercontent.com/2230241/39816268-0986c626-539b-11e8-93d8-87f8902775a0.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39816267-0966eda6-539b-11e8-8196-c7d1993b7981.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39816266-0942a126-539b-11e8-9135-33f46ffd461b.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39816593-fde61276-539b-11e8-9dac-2523e3ac7129.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39816105-82169662-539a-11e8-8a6f-a8720a50b465.png">
</td><td><img src="https://user-images.githubusercontent.com/2230241/39816103-81f2a914-539a-11e8-83c2-a86736e7208c.png"></td></tr>
</table> 

**Case 2: Selecting content from the text above the table to its last cell**

<table>
<tr><td colspan="2">Firefox 59</td><td colspan="2">Edge 16</td><td colspan="2">WebKit Preview and Chrome 68</td></tr>
<tr><td><img src="https://user-images.githubusercontent.com/2230241/39821179-ef6422cc-53a7-11e8-90d5-47013c1be133.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821180-ef86a55e-53a7-11e8-97ce-a5707fefee65.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821176-eefed868-53a7-11e8-96e9-ada95d744aa4.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821178-ef2b1540-53a7-11e8-98e6-4bbff8379a31.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821173-eec03e32-53a7-11e8-9def-533f7c0e4ce5.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821174-eee186c8-53a7-11e8-976e-921338bb53eb.png"></td></tr>
</table> 

**Case 3: Selecting content from the start of the text above the table to the start of the text below**

<table>
<tr><td colspan="2">Firefox 59</td><td colspan="2">Edge 16</td><td colspan="2">WebKit Preview and Chrome 68</td></tr>
<tr><td><img src="https://user-images.githubusercontent.com/2230241/39821424-7c4bceec-53a8-11e8-8071-59033a320704.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821426-7c6a982c-53a8-11e8-848b-eba795cdf828.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821421-7be512ce-53a8-11e8-8fbf-f044e1675e07.png"></td><td><img src=""></td><td><img src="https://user-images.githubusercontent.com/2230241/39821418-7b9c7578-53a8-11e8-8d90-50cfa5209662.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821420-7bc26738-53a8-11e8-89e3-58d363790efe.png"></td></tr>
</table> 

**Case 4: Selecting content from the end of the text above the table to the end of the text below**

<table>
<tr><td colspan="2">Firefox 59</td><td colspan="2">Edge 16</td><td colspan="2">WebKit Preview and Chrome 68</td></tr>
<tr><td><img src="https://user-images.githubusercontent.com/2230241/39821613-e6d88eee-53a8-11e8-835b-f493a64a5ee5.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821616-e6fb7daa-53a8-11e8-8306-2f925d6bf9b6.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821609-e69d4988-53a8-11e8-8293-d5e6c25c1f6b.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821611-e6bad002-53a8-11e8-83cc-14f2d98ca825.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821607-e653ac38-53a8-11e8-8cf9-55240a5df016.png"></td><td><img src="https://user-images.githubusercontent.com/2230241/39821608-e6763c58-53a8-11e8-8cf2-48e2fd195d4f.png"></td></tr>
</table> 


-- 
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-387765725

Received on Wednesday, 9 May 2018 15:08:47 UTC