[Webkit-unassigned] [Bug 275185] New: Selection's .focusOffset can exceed the number of child nodes that .focusNode has

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 5 15:42:09 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=275185

            Bug ID: 275185
           Summary: Selection's .focusOffset can exceed the number of
                    child nodes that .focusNode has
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Apple Silicon)
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: laughinghan at gmail.com
                CC: wenson_hsieh at apple.com

In both Safari 17 and the latest Safari Tech Preview, the selection's .focusOffset can exceed the number of child nodes that .focusNode has, if the cursor is at the top-level of a contentEditable and a child is removed in a `beforeinput` event handler: https://output.jsbin.com/wupuhef

Possibly related? https://bugs.webkit.org/show_bug.cgi?id=251020

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240605/9c90d4a2/attachment-0001.htm>


More information about the webkit-unassigned mailing list