code: def has(self, name):
          
          for attr in self.attributes:
              if attr.name == name.strip():
                  return True
          return False
docs: Return whether any attribute in the tag has the given *name*.
  
          Note that a tag may have multiple attributes with the same name, but
          only the last one is read by the MediaWiki parser.