[
https://issues.apache.org/jira/browse/TIKA-1782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15177572#comment-15177572
]
Markus Jelsma commented on TIKA-1782:
-------------------------------------
Yes i, unfortunately, agree. The unit test i supplied, similar to the attribute
on body test, works very well. But for some reason i cannot read attributes on
the html tag in the real world. Either the fix must be reverted, or we are
doing something wrong.
> XHTMLContentHandler doesn't pass attributes of html element
> -----------------------------------------------------------
>
> Key: TIKA-1782
> URL: https://issues.apache.org/jira/browse/TIKA-1782
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.11
> Reporter: Markus Jelsma
> Fix For: 1.12
>
> Attachments: TIKA-1782.patch
>
>
> XHTMLContentHandler.startElement() uses lazyHead() for the html element
> because it's defined in the AUTO Set. As a consequence, attributes of the
> html element are not passed to downstream content handlers.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)