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

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

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 23 Apr 2006 23:14:16 +0200
To: Maciej Stachowiak <mjs@apple.com>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <q8qn4214pj9m9v53iu7aa13l3slu3kqu1q@hive.bjoern.hoehrmann.de>

* Maciej Stachowiak wrote:
>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?

Well, I would write into the specification that implementations fill the
responseXML property if and only if they are able to derive a Document
from the entity body in accord with applicable specifications. If that
is too vague I would suggest we additionally consider cases such as:

  * XHTML delivered as text/html
  * application/fastinfoset
  * other media types for "binary XML"
  * XML 2.0, which does not use 3023 types
  * implementations that support non-XML
    formats by deriving a XML DOM from them

It seems unlikely that an implementation of XHR and some binary XML
format would make it impossible to use them in combination just because
our specification requires that.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Sunday, 23 April 2006 21:14:19 GMT

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