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

trusktr left a comment (whatwg/dom#1255)


> this would probably be easier to do in a `MutationRecord` than a custom element reaction, but both should be considered.

Just a small note about this: using MutationObserver causes a considerable callback ordering risk, whereas custom element callbacks would not. However custom elements callbacks only work with custom elements, MO works with built-ins too.

Fixing and undeprecating DOM Mutation Events would work for custom and builtin elements, AND without ordering issues. Yes, it is doable!

See the callback ordering problem here:

- https://github.com/whatwg/dom/issues/1105

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

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

Received on Saturday, 15 February 2025 07:44:32 UTC