Skip to content

Commit

Permalink
Make position a real string, when passed to syscall/js
Browse files Browse the repository at this point in the history
  • Loading branch information
miketonks authored and dennwc committed Mar 8, 2019
1 parent 2cb4b6a commit 8ccb4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion element.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,5 @@ func (e *Element) AttachShadow(opts AttachShadowOpts) *ShadowRoot {

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

0 comments on commit 8ccb4f2

Please sign in to comment.