JSREF
HTML DOM Element compareDocumentPosition()
Where is "p1" compared to "p2":