W3C home > Mailing lists > Public > www-validator@w3.org > October 2002

Re: Content Negotiation and Minor Nitpicking

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 25 Oct 2002 21:01:54 +0200
To: Terje Bless <link@pobox.com>
Cc: W3C Validator <www-validator@w3.org>
Message-ID: <3dc6738a.11293118@smtp.bjoern.hoehrmann.de>

* Terje Bless wrote:
>Christoph P”per <christoph.paeper@tu-clausthal.de> wrote:
>
>>For the matter of content negotiation it would be nice if one could
>>choose in <http://validator.w3.org:8001/detailed.html> the Accept
>>(text/html vs. application/xhtml+xml), Accept-Language and perhaps
>>Accept-Encoding HTTP headers sent by the validator.
>
>This is a very good idea. I've logged it (as tracker number #18), but it
>probably won't make the cut for this version.

Since the user is likely trying to validate the document he would get,
the Validator could just tunnel the received Accept headers to the
remote host (don't forget to make sure the Accept:-line contains all
types supported by the validator and the Accept-Langage header contains
a * to ensure the user won't get a 406 response). Otherwise it would get
rather complicated to implement a form that allows for complex choices
in this regard. Just consider a resources beeing served as a dozen
different types (e.g., RSS, HTML, SVG 1.0, SVG 1.1, XHTML Basic 1.0,
XHTML 1.0 Strict, XHTML 1.1, some custom XHTML types, etc.)

>>|<style type="text/css" media="screen">@import "./base.css";</style>
>>
>>There really should be support for other media types as well.
>
>This is a hack to prevent Netscape 4.x from attempting to load and parse
>the stylesheet.

I am pretty sure NN 4 will still ignore a

  <style type="text/css" media="all">@import "./base.css";</style>

(IIRC, NN4 rejects all media != 'screen', including 'all')
Received on Friday, 25 October 2002 15:01:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT