You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Markus Jelsma (JIRA)" <ji...@apache.org> on 2012/09/24 13:04:07 UTC

[jira] [Updated] (TIKA-995) XHTMLContentHandler doesn't pass attributes of body element

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

Markus Jelsma updated TIKA-995:
-------------------------------

    Attachment: TIKA-995-1.3-1.patch

Here's a quick fix. If the body is removed from the AUTO Set all attributes on the body tag are reported in the content handlers.
                
> XHTMLContentHandler doesn't pass attributes of body element
> -----------------------------------------------------------
>
>                 Key: TIKA-995
>                 URL: https://issues.apache.org/jira/browse/TIKA-995
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.2
>            Reporter: Markus Jelsma
>             Fix For: 1.3
>
>         Attachments: TIKA-995-1.3-1.patch
>
>
> XHTMLContentHandler.startElement() uses lazyHead() for the body element because it's defined in the AUTO Set. As a consequence, attributes of the body element are not passed to downstream content handlers. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira