W3C home > Mailing lists > Public > public-webapi@w3.org > April 2006

Re: [XHR] What mime types should trigger XML parsing?

From: Maciej Stachowiak <mjs@apple.com>
Date: Sun, 23 Apr 2006 13:33:23 -0700
Message-Id: <AB5FCED5-94C3-4949-BC55-18C59F68A57E@apple.com>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
To: Bjoern Hoehrmann <derhoermi@gmx.net>


On Apr 23, 2006, at 12:31 PM, Bjoern Hoehrmann wrote:

> * Maciej Stachowiak wrote:
>> What about media types that are not registered?
>
> Register them! Other than that, if you don't know it's XML, don't
> parse it as such. If you do know it's XML, parse it as such. But
> really do register the type.

Let me clarify what I meant. You originally wrote:

>>> It should say that implementations **use intrisinc knowledge  
>>> derived from
>>> the media type registration** to determine whether or not the  
>>> type used to
>>> label the entity body is an XML media type, persumably one that  
>>> is meant
>>> to be used for complete document entities rather than other  
>>> entities as
>>> those cannot yield in a Document.

[emphasis mine]

Should implementations be allowed or required to use intrinsic  
knowledge from other sources than media type registration? For  
example, suppose my user agent recognizes "image/svg-xml" or "text/ 
xsl". Should it then treat these as XML, even though they are  
unregistered, and will likely never be registered?

Registering types is of course a good idea, but unrelated to the  
point I was trying to make. I just wanted you to clarify whether you  
intended "knowledge derived from the media type registration" to  
limit this behavior solely to registered types.

Regards,
Maciej
Received on Sunday, 23 April 2006 20:33:36 GMT

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