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

Html elements and attributes not available in XHTML representation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.7
    • 0.8
    • parser
    • None

    Description

      The following HTML document :

      <html lang="fi"><head>document 1 title</head><body>jotain suomeksi</body></html>

      is rendered as the following xhtml by Tika :

      <?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml"><head><title/></head><body>document 1 titlejotain suomeksi</body></html>

      with the lang attribute getting lost. The lang is not stored in the metadata either.

      Attachments

        1. TIKA-379-3.patch
          9 kB
          Julien Nioche
        2. ASF.LICENSE.NOT.GRANTED--TIKA-379-2.patch
          7 kB
          Julien Nioche
        3. ASF.LICENSE.NOT.GRANTED--TIKA-379
          2 kB
          Julien Nioche

        Issue Links

          Activity

            People

              chrismattmann Chris A. Mattmann
              jnioche Julien Nioche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: