added compareDocumentPosition / contains and fallback method to detect is a node is contained by another node.