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

Blink uses [`ShouldUseBreakElement`](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/insert_line_break_command.cc;l=57?q=ShouldUseBreakElement&ss=chromium%2Fchromium%2Fsrc) to determine [whether to insert `<br>` or LF](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/insert_line_break_command.cc;l=96-99?q=ShouldUseBreakElement&ss=chromium%2Fchromium%2Fsrc); so it looks at both `plaintextonly` and `white-space`.

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

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

Received on Friday, 23 June 2023 13:26:25 UTC