Element.hasClass

bool hasClass(string c) const

Returns whether the given class appears in this element.