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

kojiishi left a comment (w3c/editing#419)

> I've noticed that Chrome and Firefox behave differently with carriage returns(Enter key); Firefox inserts <br>, while Chrome does not.

I haven't looked into the code, but at a glance, the Chrome behavior looks more natural to me because `<br>` isn't plaintext, no? Is the more detail of `plaintext-only` than the [contenteditable  content attribute](https://html.spec.whatwg.org/multipage/interaction.html#attr-contenteditable) defined somewhere?

/cc @tkent-google

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

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

Received on Wednesday, 30 April 2025 08:23:57 UTC