8000 Add Element.ReplaceChildren · Issue #85 · dominikh/go-js-dom · GitHub
[go: up one dir, main page]

Skip to content

Add Element.ReplaceChildren #85

Open

Description

@alexflint

Would it be possible to implement Element.ReplaceChildren?

I'd be happy to submit a PR.

Activity

  1. changed the title [-]Element.ReplaceChildren[/-] [+]Add Element.ReplaceChildren[/+] on Aug 6, 2023
  2. dmitshur commented on Aug 8, 2023

    @dmitshur
    SponsorCollaborator

    Have you thought about what signature it would use in Go?

    It seems the JavaScript version of this API permits the parameters to be either Nodes or strings, which unfortunately complicates things. I think it means we either don't support one of them, or need to use interface{} as the type, or end up having two versions of the method.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0