Skip to content

Commit 09dcb06

Browse files
committed
1 parent 3ad597c commit 09dcb06

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

+9
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,15 @@ abstract class Element
823823
*/
824824
def insertAdjacentHTML(where: String, html: String): Unit = js.native
825825

826+
/**
827+
* The insertAdjacentElement() method of the Element interface inserts a given
828+
* element node at a given position relative to the element it is invoked upon.
829+
*
830+
* MDN
831+
*/
832+
def insertAdjacentElement(where: String,
833+
element: Element): Element = js.native
834+
826835
/**
827836
* The `matches()` method of the `Element` interface returns `true` if the
828837
* element would be selected by the specified selector string; otherwise, it

0 commit comments

Comments
 (0)