DomNode.isBlank

bool isBlank() @nogc nothrow pure @safe const

Like isEmpty, but text made only of whitespace doesn't count either (the :blank selector)