Bug 87161 - W3M does not support the `application/xhtml+xml` mime-type
Summary: W3M does not support the `application/xhtml+xml` mime-type
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-09 12:10 UTC by Ed Schouten
Modified: 2005-10-09 17:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Schouten 2005-10-09 12:10:18 UTC
The W3M browser does not support the application/xhtml+xml mime-type. When you visit a website that is sent using the `application/xhtml+xml` mime-type, you are prompted to download the file to disk.

When renaming the file on disk to .html and visiting it with W3M, it displays correctly.

Fix: 

A patch for the port is available at:
http://g-rave.nl/files/ports/www-w3m-patch-xhtml
It should be placed in the 'www/w3m/files/' directory.

This patch is a trimmed down version of:
http://www.alib.jp/files/w3m-0.5-version-xhtml.patch
How-To-Repeat: Visit a website written in XHTML that is sent using the `application/xhtml+xml` mime-type.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-10-09 16:29:26 UTC
Could you please give a URL against which we could test the patch?

Volker
Comment 2 Ed Schouten 2005-10-09 17:14:38 UTC
* Volker Stolz <vs@freebsd.org> wrote:
> Could you please give a URL against which we could test the patch?


Of course. Here's a testcase:

http://test.g-rave.nl/xhtml.xht

The webserver is running XS-HTTPD 3.3b30 (www/xshttpd) and uses
/usr/local/etc/mime.types from misc/mime-support as its mime-types
index. Because of that, it sends back application/xhtml+xml.

Yours,
-- 
 Ed Schouten <ed@fxq.nl>
Comment 3 MANTANI Nobutaka freebsd_committer freebsd_triage 2005-10-09 17:39:39 UTC
State Changed
From-To: open->closed

I adopted the original version of the patch for PATCH_SITES and PATCHFILES. 
Thank you for submitting the PR!