go-js-dom
go-js-dom copied to clipboard
Add Element.ReplaceChildren
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.