Add compareDocumentPosition (fixes #1794) to Node
auto merge of #1862 : Manishearth/servo/comparedoc-1794, r=Ms2ger