has_attribute Callablehas_attribute(node: Element, attribute_name: string): booleanCheck whether the given tag has an attribute with the given name.Parametersnode: Elementattribute_name: stringReturns boolean
Check whether the given tag has an attribute with the given name.