[w3c/editing] Clarify the nested case of `contenteditable=true` and `contenteditable=plaintext-only` (Issue #470)

There are 2 simple cases:

```html
<div contenteditable="true">
  <div contenteditable="plaintext-only">plaintext-only</div>
</div>
```

```html
<div contenteditable="plaintext-only">
  <div contenteditable="true">rich text allowed</div>
</div>
```
Perhaps, initial shipping of `contenteditable=plaintext-only` of Firefox may depend on the topmost editing host value (i.e., focused editing host) because there are complicated issues.

For example, in the following cases, it's unclear whether rich text or plaintext should be pasted.
```html
<div contenteditable="true">
  [rich text
  <div contenteditable="plaintext-only">plaintext-only]</div>
</div>
```

```html
<div contenteditable="true">
  <div contenteditable="plaintext-only">[plaintext-only</div>
  rich text]
</div>
```
It seems that Chrome considers it from anchor node of selection. So, if you make the above selections with opposite direction, you'll see different result.

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

Message ID: <w3c/editing/issues/470@github.com>

Received on Wednesday, 25 September 2024 06:51:17 UTC