[jira] Created: (TIKA-210) html content directly under body node not parsed correctly

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (TIKA-210) html content directly under body node not parsed correctly

JIRA jira@apache.org
html content directly under body node not parsed correctly
----------------------------------------------------------

                 Key: TIKA-210
                 URL: https://issues.apache.org/jira/browse/TIKA-210
             Project: Tika
          Issue Type: Bug
          Components: parser
    Affects Versions: 0.3
            Reporter: Daan de Wit


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()

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (TIKA-210) html content directly under body node not parsed correctly

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/TIKA-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved TIKA-210.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4
         Assignee: Jukka Zitting

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.

> html content directly under body node not parsed correctly
> ----------------------------------------------------------
>
>                 Key: TIKA-210
>                 URL: https://issues.apache.org/jira/browse/TIKA-210
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.3
>            Reporter: Daan de Wit
>            Assignee: Jukka Zitting
>             Fix For: 0.4
>
>
> 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()

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.