Skip to content

moveBefore() cosmetic concerns #1335

Open
@annevk

Description

While addressing some more nits in #1307 I realized that moveBefore() returning a node is a pattern we generally don't follow for new APIs: w3ctag/design-principles#286.

I'm not sure if that deviates it enough from insertBefore() to warrant a new name.

I'm also wondering if it should be [Unscopable]. I think we generally agreed to do that for new APIs, but it's been hit or miss as to whether we remember. E.g., getRootNode() does not have this. (This is probably why it should have been an inverted flag from the beginning.)

cc @domfarolino @noamr @domenic @smaug----

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions