Node.opEquals

bool opEquals(typeof(null)) const @safe nothrow pure @nogc

node == null is true for an invalid node, node == "..." compares the html of the node, node == other is true if they are the same node.

bool opEquals(E)(auto ref const E e) const

ditto