Arguments
- Name: attr, Type: str
- attribute
- Name: value, Type: str
- value
Source
def select_attr_contains_word(self, attr, value):
ret = pyNodeList()
for node in self:
if node.attr_contains_word(attr, value):
ret.append(node)
if len(ret) == 1: return ret[0]
else: return ret