Re: [whatwg/dom] Atomic move operation for element reparenting & reordering (Issue #1255)

Great initiative!
As a React user, I've encountered two specific situations where the lack of such an API has been an issue, which I hope will be covered by this proposal:

- Unexpectedly losing pointer capture when an element in a list gets reordered. Pointer capture is a feature allowing an element to keeps receiving move events even when the pointer moves outside the element, but it is automatically canceled if the element is removed from the DOM. It's natural to use it for elements that can be dragged around, which are also most likely going to get reordered in the HTML. 

- I would like to be able to move a document from an iframe to a separate window open with `window.open`, and conversely, while preserving all JavaScript state. I'm not sure if this is covered by the "reparenting iframes" use case? This should then ideally be handled automatically by React by simply changing the target of a portal. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1255#issuecomment-2113419633
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1255/2113419633@github.com>

Received on Wednesday, 15 May 2024 20:40:42 UTC