Document.opEquals

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

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

bool opEquals(D)(auto ref const D d) const

ditto