We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb4b6a commit 8ccb4f2Copy full SHA for 8ccb4f2
element.go
@@ -286,5 +286,5 @@ func (e *Element) AttachShadow(opts AttachShadowOpts) *ShadowRoot {
286
287
// InsertAdjacentElement inserts a given element node at a given position relative to the element it is invoked upon.
288
func (e *Element) InsertAdjacentElement(position Position, newElement *Element) js.Value {
289
- return e.v.Call("insertAdjacentElement", position, newElement.v)
+ return e.v.Call("insertAdjacentElement", string(position), newElement.v)
290
}
0 commit comments