Re: [whatwg/dom] Add convenient, ergonomic, performant API for sorting siblings (#586)

P.S. I like the `parent.replaceChildren(nodes: Array<Nodes|null>, options?: {previousSibling?,nextSibling?})` idea, but `replaceChildren` make all nodes leave the tree and re-initialize them all, even if exact same children are replaced.

If this proposal wants to replace the need for CSS ordering, where none of this happens (including iframes, just moved around but they never leave the DOM) we can't use `replaceChildren` unless among options there's a `diff` flag that suggests the intended behavior.

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

Message ID: <whatwg/dom/issues/586/1425254234@github.com>

Received on Friday, 10 February 2023 06:27:24 UTC