def _contains_block_level_tag(el):
 if ((el.tag in block_level_tags) or (el.tag in block_level_container_tags)):
  return True
 for child in el:
  if _contains_block_level_tag(child):
   return True
 return False

def _contains_block_level_tag ( el ) : if ( ( el . tag in block_level_tags ) or ( el . tag in block_level_container_tags ) ) : return True for child in el : if _contains_block_level_tag ( child ) : return True return False
true if the element contains any block-level elements .