[ 
https://issues.apache.org/jira/browse/TIKA-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14487696#comment-14487696
 ] 

Ken Krugler commented on TIKA-1519:
-----------------------------------

After thinking about this more, I don't think it's a major issue for us...most 
HTML pages won't have an http-equiv meta tag attribute that changes the content 
type, so the impact isn't very big. I think it would be a minor improvement to 
continue to use the http-equiv content type if it's a refinement to what gets 
detected (e.g. both would be handled by the same parser), but that's not very 
important.

> Don't allow whatever is in http-equiv Content-Type to overwrite actual 
> Content-Type in HtmlParser
> -------------------------------------------------------------------------------------------------
>
>                 Key: TIKA-1519
>                 URL: https://issues.apache.org/jira/browse/TIKA-1519
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Tim Allison
>            Priority: Trivial
>             Fix For: 1.8
>
>
> The HtmlParser will overwrite the value of Content-Type in Metadata with any 
> value of content in an http-equiv=Content-Type header, e.g.
> {noformat}
> <meta http-equiv=Content-Type content="blah de blah blah">{noformat}.
> or even worse, perhaps:
> <meta http-equiv=Content-Type content="application/pdf">
> Let's capture the content type alleged by the html file in a different key 
> from Content-Type; I'd prefer to reserve Content-Type for "text/html; 
> charset=X".
> Candidate key/Property: Content-Type-Meta-HTTP-Equiv?
> See TIKA-1514 for example output.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to