Skip to content

Commit 0272e9f

Browse files
committed
1 parent 5a502ad commit 0272e9f

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
@@ -818,6 +818,15 @@ abstract class Element
818818
*/
819819
def insertAdjacentHTML(where: String, html: String): Unit = js.native
820820

821+
/**
822+
* The insertAdjacentElement() method of the Element interface inserts a given
823+
* element node at a given position relative to the element it is invoked upon.
824+
*
825+
* MDN
826+
*/
827+
def insertAdjacentElement(where: String,
828+
element: Element): Element = js.native
829+
821830
/**
822831
* The `matches()` method of the `Element` interface returns `true` if the
823832
* element would be selected by the specified selector string; otherwise, it

0 commit comments

Comments
 (0)