1. Node.compareDocumentPosition()

    Compares the relative position of two nodes to each other in the DOM tree.