Re: [whatwg/dom] Proposal: moveOrInsertBefore() (Issue #1406)

sorvell left a comment (whatwg/dom#1406)

It seems like the developer sentiment here is basically "I always want to move an element if I can and fallback to insert if I must," and the claim would be that you want to move an element 100% of the time if you can and therefore this API that makes that hard is cumbersome.

Based on the [previous](https://github.com/whatwg/dom/issues/1406#issuecomment-5739681021) [comments](https://github.com/whatwg/dom/issues/1406#issuecomment-5761593936) from @annevk and @smaug----, it seems like this may not be a viewpoint shared by implementors. So I think it's fair to ask, can you give a practical example of when it would make sense *not* to move an element if you can?

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

Message ID: <whatwg/dom/issues/1406/6472521762@github.com>

Received on Wednesday, 28 October 2026 15:02:52 UTC