Brought back the compareDocumentPosition code. While it is redundant in Firefox it...