- From: Jelle Raaijmakers <notifications@github.com>
- Date: Mon, 12 Jan 2026 05:52:39 -0800
- To: w3c/editing <editing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 12 January 2026 13:52:44 UTC
gmta created an issue (w3c/editing#522) When inserting text, we should not use void elements (such as `<br>`) as the target for insertion but rather move up the tree to its parent. I suspect we need to add a step between step 6 and 7 [of the inserttext command](https://w3c.github.io/editing/docs/execCommand/#the-inserttext-command) stating that if node is a [void element](https://html.spec.whatwg.org/multipage/syntax.html#void-elements), set offset to node's index and node to node's parent. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/editing/issues/522 You are receiving this because you are subscribed to this thread. Message ID: <w3c/editing/issues/522@github.com>
Received on Monday, 12 January 2026 13:52:44 UTC