setBaseAndExtent

fun setBaseAndExtent(anchorNode: Node, anchorOffset: Int, focusNode: Node, focusOffset: Int)(source)

MDN Reference