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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.7
    • 0.8
    • parser
    • 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.patch
          12 kB
          Kenneth William Krugler
        2. TIKA-478-2.patch
          1 kB
          Kenneth William Krugler

        Issue Links

          Activity

            People

              kkrugler Kenneth William Krugler
              kkrugler Kenneth William Krugler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: