'Deleting tag[key] deletes all \'key\' attributes for the tag.'

def __delitem__(self, key):

    for item in self.attrs:
        if (item[0] == key):
            self.attrs.remove(item)
        self._getAttrMap()
        if (key in self.attrMap):
            del self.attrMap[key]
