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

### Alternative Suggestion to reparenting/reordering
I hop in here with a suggestion that would replace this but might make the implementation easier.

Referencing my other [comment ](https://github.com/whatwg/html/issues/5484#issuecomment-1851327170
) on another thread. Instead of reparenting and reordering elements, we allowed something like the `<slot>` element to work outside of shadow dom, or create a whole new element whos purpose is to "render" another element inside of itself just like the `<slot>` element does. And by [reassigning](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assign) the slot or moving around the slot names, we can "move" elements around in dom.

We wont actually be moving the elements or effecting the dom three, Just render it in place of the `<slot>`.

By doing this we wont need to change structure of dom elements or worry about states, three structure etc, since we never move the element just render it somewhere else.

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

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

Received on Thursday, 11 July 2024 05:39:30 UTC