[
https://issues.apache.org/jira/browse/TIKA-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897954#action_12897954
]
Ken Krugler commented on TIKA-478:
----------------------------------
Emitting metadata entries inside of the <head> element works for <meta>
elements, of course, but not for <link> or <base>. Though it does improve
output for non-HTML parsers, so it feels like the right way to at least handle
<meta>.
> HtmlParser can emit <head> elements inside of <body> block
> ----------------------------------------------------------
>
> Key: TIKA-478
> URL: https://issues.apache.org/jira/browse/TIKA-478
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 0.7
> Reporter: Ken Krugler
> Assignee: Ken Krugler
> Priority: Critical
> Fix For: 0.8
>
>
> The change to fix [TIKA-379] causes a premature generation of HTML <head>
> element and nested <title> by the XHTMLContentHandler being used by
> HtmlHandler.
> This then creates issues for any downstream content handler, as they can then
> get an empty <title> element, and <meta> elements inside of the <body>
> element (which is invalid).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.