ํ์
In Chrome, when using selection.addRange() to set cursor position in a contenteditable element with nested elements, the selection is correctly positioned at the intended location.
์ฌํ ์์
- Contenteditable element contains markers (
<span>elements). - Click button to move cursor before Marker 2.
๊ด์ฐฐ๋ ๋์
- Correct behavior: Selection is positioned before Marker 2 as intended
- No jumping: Selection stays within intended container
- Works correctly: Chrome handles nested elements properly
์ฐธ๊ณ ์ฌํญ
This is a control case demonstrating that the issue is Safari-specific and does not affect Chrome.