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

Re: XHTML

From: Toby A Inkster <tobyink@goddamn.co.uk>
Date: Tue, 8 Apr 2003 18:08:08 +0100
To: Herr Christian Wolfgang Hujer <Christian.Hujer@itcqis.com>
Cc: www-html@w3.org
Message-ID: <20030408170808.GB16887@ophelia.goddamn.co.uk>
On Tue, Apr 08, 2003 at 05:25:59PM +0200, Herr Christian Wolfgang Hujer wrote:
| Am Dienstag, 8. April 2003 16:23 schrieb T. Daniel:
| > Christian Wolfgang Hujer wrote:
| > > 3. The only user agent of that I know it accepts application/xhtml+xml on
| > > HTTP Request level is Mozilla / Netscape 7.
| > > 4. Opera and Konqueror at least know how to deal with XHTML, but they do
| > > not tell the server they can (no Accept application/xhtml+xml in the
| > > HTTP Request). They still have some problems in some fields, e.g. 
| > > JavaScripts or Stylesheets in XHTML not working at all or only very 
| > > limited.
| >
| > Minor correction:
| > Opera 7 does send the Accept application/xhtml+xml in its HTTP Request.

As it happens, in my experience Opera 6 and 7 handle application/xhtml+xml 
better than Gecko. (Aside from a minor bug in Opera 6 that means the 
user has to refresh the page before the style sheet will be applied)

| Maybe the windows 7.1 will do.
| But the 7.0.0P2 for Linux definitely doesn't (file: 
| opera-7.0.0-20030311.4-shared-qt.i386.tar.bz2 ).
| And the 7.1.0 TP3 for Linux also definitely doesn't (file: 
| opera-7.1.0-20030403.4-shared-qt.i386.tar.bz2 ).
| And the Windows 7.03 also definitely doesn't.
| 
| Try http://www.hujer.com/cgi-bin/printenv.pl with the mentioned versions, to 
| verify, look at HTTP_ACCEPT.

HTTP_ACCEPT includes "*/*", thus Opera indicates that it accepts 
application/xhtml+xml. 

| application/xhtml+xml can only be considered working if
| a) it is sent as part of the Accept-Header at all
| b) it is treated and parsed as XML (including a check for well-formedness)
| c) The Accept Header priority of text/html is less than the priority of 
| application/xhtml+xml

Why c? 

Does a browser have to put image/png at a higher priority than 
image/jpeg to indicate that it accepts PNG images? Does it need to put 
audio/mp3 at a higher priority than application/pdf to indicate that it 
accepts MP3 audio?

To indicate that a browser accepts application/xhtml+xml, all a browser 
must do is put one of these in the Accept header:

	a) application/xhtml+xml
	b) application/*
	c) */*

-- 
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://(nothing)

Received on Tuesday, 8 April 2003 13:08:12 GMT

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