As Selection.removeAllRanges() and Selection.removeRange(range) uses the same statement The method must make the context object empty by disassociating its range if the context object's range isrange.Otherwise, it must do nothing.
One more point, what is range, in Selection.removeAllRanges() when we are saying if the context object's range isrange`.
The method must make the context object empty by disassociating its range if the context object's range is
range.Otherwise, it must do nothing.
One more point, what is range, in Selection.removeAllRanges() when we are saying
if the context object's range is
range`.