Re: [w3c/editing] Behavior of insert* commands for contenteditable=plaintext-only (Issue #419)

> Handling steps of `Document.execCommand("insertParagraph"`) (Chrome/Safari handle this command differently from pressing Enter)

https://software.hixie.ch/utilities/js/live-dom-viewer/saved/11814 (compare with [`contenteditable=true`](https://software.hixie.ch/utilities/js/live-dom-viewer/saved/11815)). Chrome and Safari insert a `div` and insert following sibling text to it (for both plaintext-only and true). Gecko (for `contenteditable=true`) results in two `div`s, one for `x` and one for `z`.

> Handling steps of `Document.execCommand("insertLineBreak"`) (LF vs `<br>` (Chrome vs. Safari)

LF seems more useful for plaintext-only.


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

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

Received on Thursday, 22 June 2023 15:39:21 UTC