code: def handle_inconsistencies(node, strictness, strategy, report):
      
      if isinstance(node, PcGtsType):
          node = node.get_Page()
      elif isinstance(node, GlyphType):
          return report
  
      _, tag, getter, concatenate_with = [x for x in _HIERARCHY if isinstance(node, x[0])][0]
      children_are_consistent = True
      children = getattr(node, getter)()
      for child in children:
          errors_before = len(report.errors)
          handle_inconsistencies(child, strictness, strategy, report)
          if len(report.errors) > errors_before:
              children_are_consistent = False
      if concatenate_with is not None:
          concatenated_children = concatenate_children(node, concatenate_with, strategy)
          text_results = get_text(node, strategy)
          if concatenated_children and text_results and concatenated_children != text_results:
              if strictness == 'fix':
                  set_text(node, concatenated_children, strategy)
                  #  if children_are_consistent:
                  #  else:
                  #      # TODO fix text results recursively
                  #      report.add_warning("Fixing inconsistencies recursively not implemented")
              elif strictness == 'lax':
                  if not compare_without_whitespace(concatenated_children, text_results):
                      report.add_error(ConsistencyError(tag, node.id, text_results, concatenated_children))
              else:
                  report.add_error(ConsistencyError(tag, node.id, text_results, concatenated_children))
      return report
docs: Check whether the text results on an element is consistent with its child element text results.