Skip to content

Commit 8ccb4f2

Browse files
miketonksdennwc
authored andcommitted
Make position a real string, when passed to syscall/js
1 parent 2cb4b6a commit 8ccb4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

element.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,5 @@ func (e *Element) AttachShadow(opts AttachShadowOpts) *ShadowRoot {
286286

287287
// InsertAdjacentElement inserts a given element node at a given position relative to the element it is invoked upon.
288288
func (e *Element) InsertAdjacentElement(position Position, newElement *Element) js.Value {
289-
return e.v.Call("insertAdjacentElement", position, newElement.v)
289+
return e.v.Call("insertAdjacentElement", string(position), newElement.v)
290290
}

0 commit comments

Comments
 (0)