Skip to content

moveBefore() #1355

Open
Open

Description

@o-t-w

Description

The moveBefore() function moves elements within the DOM without losing various states, such as animation and transition state, :focus, open/close state of popovers, and <iframe> loading state.

Specification

https://dom.spec.whatwg.org/#dom-parentnode-movebefore

web-feature

https://web-platform-dx.github.io/web-features-explorer/features/move-before/

Test Links

https://wpt.fyi/results/dom/nodes/moveBefore

Additional Signals

Chrome/Edge and Firefox already support this API.
WebKit standards position: positive
In last years Interop, this feature received 41 👍.
This tweet received 397 likes.

Activity

  1. github-actions commented on Sep 3, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    Feature moveBefore()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions