Not planned
Description
What is the issue with the DOM Standard?
Move before is specified 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 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.
Metadata
Metadata
Assignees
Labels
No labels
Activity
WebReflection commentedon Jun 24, 2025
AFAIK they use moveBefore already and you can move before any node, including text and comments so I’m not sure I’m understanding this issue … moveBefore works like insertBefore and that’s what uhtml, lit or others use.