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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.17
    • Fix Version/s: 2.0, 1.21
    • Component/s: parser
    • Labels:
      None
    • Environment:

      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. test.html
          3 kB
          Filip
        2. Test.doc
          60 kB
          Filip
        3. Invalid-XML.doc
          37 kB
          Funbit

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: