The endContainer of AbstractRange for JS returns range’s end node.
node = range.endContainer
collapsed
endOffset
startContainer
startOffset
Web Hypertext Application Technology Working Group (WHATWG)