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

justinfagnani left a comment (whatwg/dom#1406)

@smaug---- sorry I was trying to simplify my actual code to make it more readable here. I'll clean it up.

The point is that in order to safely use `moveBefore()` we have to reimplement the checks that it does and fall back to `insertBefore()` if our nodes don't meet the requirements. It would be a lot easier, and likely faster, if there was a DOM API that just did this for us. I don't see the benefit in forcing this conditional logic to be wrapped around so many `moveBefore() calls.

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

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

Received on Tuesday, 7 October 2025 00:26:53 UTC