Source
def cls(self):
if 'class' in self._attr: return self._attr['class']
else: return None
returns a class name or space separated class names.
def cls(self):
if 'class' in self._attr: return self._attr['class']
else: return None