This function works as a shortcut of one of the calls:
getAttrValue(element, attrName).toBoolean()
or
getAttrValue(attrName).toBoolean()
See Also:
getAttrValue(), toBoolean()