docs: def parse_text(document, container, element):
      "Parse text element."
  
      txt = None
  
      alternate = element.find(_name('{{{mc}}}AlternateContent'))
  
      if alternate is not None:
          parse_alternate(document, container, alternate)
  
      br = element.find(_name('{{{w}}}br'))
  
      if br is not None:
          if _name('{{{w}}}type') in br.attrib:
              _type = br.attrib[_name('{{{w}}}type')]
              brk = doc.Break(_type)
          else:
              brk = doc.Break()
  
          container.elements.append(brk)
  
      t = element.find(_name('{{{w}}}t'))
  
      if t is not None:
          txt = doc.Text(t.text)
          txt.parent = container
  
          container.elements.append(txt)
  
      rpr = element.find(_name('{{{w}}}rPr'))
  
      if rpr is not None:
          # Notice it is using txt as container
          parse_previous_properties(document, txt, rpr)
  
      for r in element.findall(_name('{{{w}}}r')):
          parse_text(document, container, r)
  
      foot = element.find(_name('{{{w}}}footnoteReference'))
  
      if foot is not None:
          parse_footnote(document, container, foot)
  
      end = element.find(_name('{{{w}}}endnoteReference'))
  
      if end is not None:
          parse_endnote(document, container, end)
  
      sym = element.find(_name('{{{w}}}sym'))
  
      if sym is not None:
          _font = sym.attrib[_name('{{{w}}}font')]
          _char = sym.attrib[_name('{{{w}}}char')]
  
          container.elements.append(doc.Symbol(font=_font, character=_char))
  
      image = element.find(_name('{{{w}}}drawing'))
  
      if image is not None:
          parse_drawing(document, container, image)
  
      refe = element.find(_name('{{{w}}}commentReference'))
  
      if refe is not None:
          _m = doc.Comment(refe.attrib[_name('{{{w}}}id')], 'reference')
          container.elements.append(_m)
  
      return