Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2601

Invalid XHTML output (overlapping a and formatting tags) for some WORD documents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.17
    • 2.0.0, 1.21
    • parser
    • None
    • Linked is a sample document with its corresponding output.

    Description

      In some WORD (.doc, .docx) documents the XHTML elements are not closed properly. This usually happens when there are link elements (<a>) as well as italic or bold elements (<b><i>).

       

      Fix should be done in https://github.com/apache/tika/blob/master/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java

      Attachments

        1. Invalid-XML.doc
          37 kB
          Funbit
        2. Test.doc
          60 kB
          Filip
        3. test.html
          3 kB
          Filip

        Issue Links

          Activity

            People

              grossws Konstantin Gribov
              Fila Filip
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: