Created attachment 64539 [details] Test document When a div (for example) contains sibling contentEditable elements, it is impossible to select the sibling elements simultaneously, even when adding a range containing the div to the window's selection. The attached HTML file selects a range containing a div and displays an alert containing the selection's contents. The selection is empty in WebKit; in Firefox, the selection contains the contents of the div.
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 and it does not show anything within dialog window and also does not select any text later (after dismissing the dialog). *** Safari 15.6 on macOS 12.5 *** Empty dialog showing (Selection is: *empty*) and then after dismissing, it does not select any text. *** Chrome Canary 106 *** Empty dialog showing (Selection is: *empty*) and then after dismissing, it does select both lines (text). *** Firefox Nightly 105 *** Show dialog with "Selection Text" inside and after dismissing, it also select text both lines. ___ I think Safari should at least select text but ideally should mimic behavior of Firefox (unless it is non-standard). Thanks!
<rdar://problem/98253991>