Re: [w3c/editing] Safari/Chrome Desktop: Caret movement with up/down arrow keys breaks when DOM is constructed programmatically (Issue #513)

michael left a comment (w3c/editing#513)

Yes, that's the behavior I see too, in both Safari and Chrome (Firefox breaks generally when there's no additional br element). So if this a browser bug, it likely got introduced in pre-Blink times.

What is so weird here is that there are some ways (declarative or programmatic) that lead to one behavior, and other ways (programmatic) that lead to the other behavior, even though the DOM structure is exactly the same. But there must be something else in the state of the document that causes the difference in behavior.

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

Message ID: <w3c/editing/issues/513/3548862387@github.com>

Received on Tuesday, 18 November 2025 17:51:49 UTC