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

Regarding the pointer capture issue, I want to make sure I understand the scenario. From experimenting [**with this demo I made**](https://output.jsbin.com/moqabap), it seems that moving an element around the DOM (with classic `insertBefore()`, for example) that had `setPointerCapture()` called on it before the move, results in pointer capturing being _reset_ & the `lostpointercapture` event being fired. And it sounds like you'd want it to be preserved, and thus the `lostpointercapture` event would not be fired. Is that right?

> I would like to be able to move a document from an iframe to a separate window open

Our proposal is limited to the same-document move case for now. The cross-document case is significantly more complicated, and most of the big use cases are unlocked with the narrower-scoped approach, so we are starting out with that.

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

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

Received on Wednesday, 15 May 2024 23:05:41 UTC