setEnd method
The Range.setEnd()
method sets the end position of a Range to be
located at the given offset into the specified node x.Setting
the end point above (higher in the document) than the start point will
result in a
collapsed range with the start and end points both set to the specified
end position.
Implementation
external void setEnd(
Node node,
int offset,
);