🐛 Bug Fix
- Safari: with the editor inside a shadow root, Backspace threw
HierarchyRequestError: The operation would yield an incorrect node tree.and Enter did nothing.Selection.selreached into the shadow tree only throughShadowRoot.getSelection(), a non-standard method WebKit never implemented, and fell back towindow.getSelection(), which stops at the shadow boundary and reports the host. The selection layer now resolves the caret through the standardSelection.getComposedRanges()when that happens, including the argument shape Safari shipped first, and answersanchorNode/focusNodefrom it so the editor no longer decides it has lost focus and resets the caret after an edit. Browsers whose window selection already sees into the shadow tree, such as Firefox, keep the previous path. Reported by Ralf Pichler (Jodit OEM).