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

HtmlParser can emit <head> elements inside of <body> block

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.8
    • Component/s: parser
    • Labels:
      None

      Description

      The change to fix TIKA-379 causes a premature generation of HTML <head> element and nested <title> by the XHTMLContentHandler being used by HtmlHandler.

      This then creates issues for any downstream content handler, as they can then get an empty <title> element, and <meta> elements inside of the <body> element (which is invalid).

        Attachments

        1. TIKA-478-2.patch
          1 kB
          Ken Krugler
        2. TIKA-478.patch
          12 kB
          Ken Krugler

          Issue Links

            Activity

              People

              • Assignee:
                kkrugler Ken Krugler
                Reporter:
                kkrugler Ken Krugler
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: