code: def match_tagname(self, el, tag):
          
  
          name = (util.lower(tag.name) if not self.is_xml and tag.name is not None else tag.name)
          return not (
              name is not None and
              name not in (self.get_tag(el), '*')
          )
docs: Match tag name.