replaceChild

fun replaceChild(node: Node, child: Node): Node(source)

Since Kotlin

1.1