Open
Description
What is the issue with the HTML Standard?
See w3c/editing#470 for the detail of the situations.
If partial editing mode change is allowed with:
<div contenteditable=true>
rich text
<div contenteditable=plaintext-only>plain text</div>
rich text
</div>
It's difficult to define the behavior of all edge cases when selection range crosses the inner contenteditable
element boundary. Therefore, the editing mode should be considered with the outermost element whose parent element is not editable.
E.g., I think that in the following case, the innermost one should win:
<div contenteditable=true>
rich text
<div contenteditable=false>
non-editable text
<div contenteditable=plaintext-only>plain text</div>
non-editable text
</div>
rich text
</div>
(So, it seems that when contenteditable
is nested with contenteditable=false
, the outermost contenteditable
in the innermost contenteditable=false
should always have focus when selection is in it.)