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 2011/09/20 11:41:09 UTC
[jira] [Resolved] (TIKA-725) Empty title element makes
Tika-generated HTML documents not open in Chromium
[ https://issues.apache.org/jira/browse/TIKA-725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting resolved TIKA-725.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.10
Assignee: Jukka Zitting
Hmm, good point. The XML serializer will output <title/> when no characters() events come between the start and end tags and <title></title> when there's an empty characers() event in between. This distinction shouldn't make much difference to clients, but since it apparently does for Chromium, I guess it's best if we work around the issue.
Thus, I fixed this in revision 1173050 by explicitly emitting an empty characters() event inside <title> when no title string is available.
> Empty title element makes Tika-generated HTML documents not open in Chromium
> ----------------------------------------------------------------------------
>
> Key: TIKA-725
> URL: https://issues.apache.org/jira/browse/TIKA-725
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: Chromium 12 on Ubuntu Linux
> Reporter: Henri Bergius
> Assignee: Jukka Zitting
> Priority: Minor
> Labels: html
> Fix For: 0.10
>
>
> Currently when converting Excel sheets (both XLS and XLSX), Tika generates an empty title element as <title/> into the document HEAD section. This causes Chromium not to display the document contents.
> Switching it to <title></title> fixes this.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira