W3C home > Mailing lists > Public > public-html@w3.org > November 2007

Re: Format for type attribute value

From: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 19 Nov 2007 21:38:55 +0100
Message-ID: <4741F45F.1070408@gmx.de>
To: Henri Sivonen <hsivonen@iki.fi>
CC: "public-html@w3.org List" <public-html@w3.org>

Henri Sivonen wrote:
> On Nov 19, 2007, at 21:45, Julian Reschke wrote:
> 
>> Multiple media-type values? What would that be good for? Pointer?
> 
> 
> http://mxr.mozilla.org/firefox/source/netwerk/base/src/nsURLHelper.cpp#834

That looks like a bug to me. Content-Type takes a single media type, period:

	Content-Type   = "Content-Type" ":" media-type

and

     media-type     = type "/" subtype *( ";" parameter )
     type           = token
     subtype        = token

-- <http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.14.17>,
<http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.3.7>.

Maybe that code fragment is also used for "Accept"? ...:

     Accept         = "Accept" ":"
                      #( media-range [ accept-params ] )

     media-range    = ( "*/*"
                      | ( type "/" "*" )
                      | ( type "/" subtype )
                      ) *( ";" parameter )
     accept-params  = ";" "q" "=" qvalue *( accept-extension )
     accept-extension = ";" token [ "=" ( token | quoted-string ) ]

-- <http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.14.1>

?

Best regards, Julian
Received on Monday, 19 November 2007 20:39:22 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:24 UTC