W3C home > Mailing lists > Public > www-html@w3.org > March 2003

Re: SV: Latest version of XHTML

From: Toby A Inkster <tobyink@goddamn.co.uk>
Date: Sun, 9 Mar 2003 19:55:08 +0000
To: Herr Christian Wolfgang Hujer <Christian.Hujer@itcqis.com>
Cc: Nigel Peck - MIS Web Design <nigel@miswebdesign.com>, Jim Dabell <jim-www-html@jimdabell.com>, www-html@w3.org, Jesper Tverskov <jesper.tverskov@mail.tele.dk>, basil crow <basilcrow@cox.net>
Message-ID: <20030309195508.GB16564@ophelia.goddamn.co.uk>
On Sun, Mar 09, 2003 at 08:24:55PM +0100, Herr Christian Wolfgang Hujer wrote:
| I'd say, an example of an ideal Accept header for a browser like Konqueror or 
| Opera (both can handle HTML, XML and XHTML) is:
| Accept: 
| text/xml,application/xml,application/xhtml+xml,text/css,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg;q=0.2,*/*;q=0.1
| Which is, of course, just a terse example which should be extended to accept 
| JavaScript and those types for that plugins were found, like Java, Flash or 
| SVG.
| 
| What do you think?

Hmmm... I'd say it depends on the request. For example, if the request is 
for a URL typed into the address bar, then what you say above would be 
appropriate.

However, if the request is for an image embedded in a web page, it should 
send an accept header of something like:

Accept: image/png,image/jpeg,image/gif,image/*;q=0.9,*/*;q=0.1

If the request is for something where the browser is already expecting a 
particular MIME type, for example a link:

<link rel="alternative" href="index.foobar" type="foo/bar"
 title="This page in Foo Bar format">

or an object:

<object href="blah.foobar" type="foo/bar">
  Alternative content.
</object>

Then the browser should send:

Accept: foo/bar,foo/*;q=0.9,*/*;q=0.1

-- 
Toby A Inkster BSc (Hons) ARCS | mailto:tobyink@goddamn.co.uk | pgp:0x6A2A7D39
    aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:tobyink@a-message.de
            http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
     playing://counting_crows/hard_candy_uk_edition/02_american_girls.ogg

Received on Sunday, 9 March 2003 14:55:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT