google-code-backups / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

XHTML transitional documents get sent with text/xml header preventing them from being rendered #192

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PHPDocumentor produces XHTML transitional output which isn't actually valid
XML. The call to mime_content_type in Plugin/Repos/Api/Format/File.php
means that a text/xml header is returned instead of text/html, which means
that Firefox (and probably other browsers) refuse to render the content due
to XML parsing errors.

A simple fix is to add the following files above the mime_content_type
check in the File.php file:

else if(preg_match('/.*?\.html/', $filename)) {
    return 'text/html';
}

Original issue reported on code.google.com by ben.m.do...@gmail.com on 11 Feb 2009 at 11:43

GoogleCodeExporter commented 8 years ago

Original comment by opitz.al...@googlemail.com on 20 Aug 2011 at 10:32

GoogleCodeExporter commented 8 years ago

Original comment by opitz.al...@googlemail.com on 13 Sep 2011 at 8:44

GoogleCodeExporter commented 8 years ago
As the code part seems broken by design (or implementation). I move this into 
v2.2 as the next release could address this part.

Original comment by opitz.al...@googlemail.com on 30 Sep 2011 at 9:13

GoogleCodeExporter commented 8 years ago

Original comment by opitz.al...@googlemail.com on 30 Sep 2011 at 10:19