Collapsing, cloning, & comparing ranges

Heading

Hello bold World


Collapsing, cloning, & comparing ranges

  1. To empty a range, (that is, to have it select no part of the document), you collapse it.
  2. You can either collapse at the beginning or end of a range
  3. You can test if two nodes in a range are next to each other
  4. To clone a range use the following
  5. Comparing DOM ranges