Document.opEquals
bool opEquals(typeof(null)) const @safe nothrow puredoc == 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) constditto