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

@tsutsu thanks for the detailed use case and proposals!
I can see how the `moveBefore` proposal is constrained and still requires doing some things in Userland, however what makes it feasible to implement is the fact that the JS call itself is atomic. The range of things that can happen between starting and ending a multi-call transaction is way too vast. 

I think that the path to support something more complex would be to first implement something along the lines of #270, where you can create a batch of DOM changes and apply them in a single JS call. Then the semantics of `moveBefore` can be an option there.

But I don't see this as a dependency, rather a potential future enhancement.

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

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

Received on Monday, 26 August 2024 10:24:04 UTC