W3C home > Mailing lists > Public > public-webapi@w3.org > June 2007

Re: Recent spec change to XMLHttpRequest default Content-Type

From: Carsten Orthbandt <carsten@pixeltamer.net>
Date: Fri, 15 Jun 2007 10:40:33 +0200
Message-ID: <46725081.4010606@pixeltamer.net>
To: Jim Ley <jim@jibbering.com>, "Web API WG (public)" <public-webapi@w3.org>

Jim Ley schrieb:
> (off list?)

Sorry, hit the wrong reply button...

> 
> "Carsten Orthbandt" <carsten@pixeltamer.net>
>> Jim Ley schrieb:
>>  The HTTP default content type (octet stream) is actually exactly
>>  the type it is: an opaque data stream not meant to be interpreted.
> 
> No, don't agree at all with vnd. and prs. content types so cheap you
> should always create a content type for your content, it makes a good
> part of the contract between you and the service you're providing.

The contract is between my server code and my client code. Everything
else inbetween should treat it as an opaque data stream. And that is
the actual default for "no content type specified".

>> What's so terribly bad about NOT breaking older apps that are 100% in
>> conformance with HTTP and the older XMLhttpRequest spec?
> 
> Where's the breaking?  the error in mozilla is not fatal - it's just a
> warning about not being able to create responseXML is it not?
> 
> If it is fatal, then yes it's a mozilla bug, but it's a mozilla bug, not
> related to the spec, and using a specification to force vendors to fix
> bugs isn't a good strategy.

It is actually NOT a warning, but logged as a hard error. Which is rather
strange since it doesn't affect the script at all.
And even a warning is bad since there are possibly hundreds of them every
minute.
It wasn't my idea that this belongs to the spec at all. Anne sort of finished
the discussion in the bug entry by referring to the spec as "thats exactly
how it should be".


Carsten Orthbandt


pixeltamer.net
c/o Carsten Orthbandt
Baumschulenstrasse 102
12437 Berlin
+49 (0) 30 34347690
Received on Friday, 15 June 2007 08:41:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:57 GMT