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

IdentityHtmlMapper.mapSafeElement() needs to return lower-cased incoming name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3
    • parser
    • None

    Description

      Currently IdentityHtmlMapper.mapSafeElement(String name) just returns name as-is. This makes the XHTMLContentHandler think that it hasn't received a <body> tag, since it assumes input is lower-cased. So you get output that looks like:

      <body><BODY/></body></html>

      The solution is a trivial change to lower-case the incoming name, the same as what the mapSafeAttribute() method is already doing.

      Attachments

        1. TIKA-869.patch
          2 kB
          Kenneth William Krugler

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: