fixed DOMNode comparator for canonical comparison