You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2010/08/02 10:48:16 UTC

[jira] Resolved: (TIKA-358) Auto-detection of HTML fails with common auto-generated template

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

Jukka Zitting resolved TIKA-358.
--------------------------------

         Assignee: Jukka Zitting  (was: Ken Krugler)
    Fix Version/s: 0.8
       Resolution: Fixed

I fixed this in revision 981417 by adding <script/> and <frameset/> as indicators of HTML documents when detecting XML root elements.

> Auto-detection of HTML fails with common auto-generated template
> ----------------------------------------------------------------
>
>                 Key: TIKA-358
>                 URL: https://issues.apache.org/jira/browse/TIKA-358
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 0.5
>            Reporter: Ken Krugler
>            Assignee: Jukka Zitting
>             Fix For: 0.8
>
>         Attachments: TIKA-358.html
>
>
> There's a commonly generated HTML document format that fools the auto-detection code into classifying it as XML.
> I've attached one example of this, from http://www.saveums.com/detect.html
> Then the XML parser barfs because there's a dangling comment at the end.
> In all the cases I've seen, the server returns the right mime-type (text/html), so perhaps this could be used to disambiguate.

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