[Bug 18] For conneg, allow choosing the Accept-* headers to send.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=18





------- Comment #6 from thedevek@gmail.com  2006-05-25 21:40 -------
Ok.. considering this is a 3 1/2 year old bug.. 

When trying to use XHTML you will run into problems serving the correct MIME
type to Internet Exploder users. There is a wonderful article at
http://keystonewebsites.com/articles/mime_type.php that shows gets you started
in the direction of correctly serving your documents as XHTML and HTML4.

Unfortuantly, by doing that you are unable to validate your XHTML pages as the
validator is incapable of sending the accept headers.

Since no one really seems to be in a rush to correct this I went ahead and did
it myself.. it may break stuff and be improper but I don't really care. 

Go to http://validator.w3.org/docs/install.html and install validator-0.7.2.
When that is up and running download
http://glimpse.onlineok.com/validator-accept.tgz with that you can either apply
the patch inside or just untar it in your root validator directory and it will
overwrite the correct files.

You can now ask for text/html pages or application/xhtml+xml pages. There was
someone here earlier wanting to be able to ask for SMS type pages, it would be
trivial to add support for different acception options by making changes to
share/templates/en_US/popup_accept.tmpl and htdocs/accept-select.html

You can see this work at http://glimpse.onlineok.com/w3c-validator/ but please
go easy on that since it is my desktop at work :)

W3C team can feel free to use my code, I don't care.. I just think this is kind
of important and critical to be in the validator if you want people actually
taking XHTML seriously.

Received on Thursday, 25 May 2006 21:40:58 UTC