Skip to content

Commit 67f3de7

Browse files
committed
Add ParentNode.replaceChildren
1 parent 5a502ad commit 67f3de7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,13 @@ trait ParentNode extends js.Object {
622622
* MDN
623623
*/
624624
def childElementCount: Int = js.native
625+
626+
/**
627+
* Replaces the existing children of a Node with a specified new set of children.
628+
*
629+
* MDN
630+
*/
631+
def replaceChildren(nodes: (Node | String)*): Unit = js.native
625632
}
626633

627634
/**

0 commit comments

Comments
 (0)