Arguments
- Name: tag, Type: str
- tag name
Source
def attr_starts_with(self, attr, value):
a = self.attr(attr)
if a is not None:
starts = re.compile(value)
if starts.match(a) is not None:
return True
return False