spl_object_hash can give duplicate hashes if PHP releases the memory
associated to a DOMNode
Doc