Tika
  1. Tika
  2. TIKA-210

html content directly under body node not parsed correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3
    • Fix Version/s: 0.4
    • Component/s: parser
    • Labels:
      None

      Description

      The html parser does not correctly parse content that is directly under the body node, when passing html like this: <html><body>This is my content</body></html>, an empty string is returned when calling BodyContentHandler#toString()

        Activity

        Hide
        Jukka Zitting added a comment -

        This was caused by the XHTMLContentHandler postponing the output of the XHTML prefix to when the first start tag inside the <body> is seen.

        Fixed in revision 757747.

        Show
        Jukka Zitting added a comment - This was caused by the XHTMLContentHandler postponing the output of the XHTML prefix to when the first start tag inside the <body> is seen. Fixed in revision 757747.

          People

          • Assignee:
            Jukka Zitting
            Reporter:
            Daan de Wit
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development