[whatwg/dom] [moveBefore] Consider making this a feature of Node not ParentNode (Issue #1385)

sorvell created an issue (whatwg/dom#1385)

### What is the issue with the DOM Standard?

Move before is [specified](https://github.com/whatwg/dom/pull/1307) on the ParentNode interface. This means it cannot be used to move a node before a Comment or Text node. This is an unfortunate limitation since it seeminly arbitrarily restricts where an atomic move can be applied.

In particular some web [libraries](https://lit.dev) use Comment nodes as markers to separate dynamic renderable "holes" in the DOM. These libraries cannot use `moveBefore` since it would require inserting before a Comment node.

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

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

Received on Monday, 23 June 2025 16:42:45 UTC