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

Re: XMLHttpRequest.responseXML and invalid XML documents

From: Maciej Stachowiak <mjs@apple.com>
Date: Wed, 26 Apr 2006 17:52:18 -0700
Message-Id: <B1F285B0-54BF-4864-A0A1-70E039B2DD04@apple.com>
Cc: Ian Hickson <ian@hixie.ch>, Boris Zbarsky <bzbarsky@mit.edu>, "Hallvord R. M. Steen" <hallvord@opera.com>, public-webapi@w3.org
To: Jonas Sicking <jonas@sicking.cc>


On Apr 26, 2006, at 5:43 PM, Jonas Sicking wrote:

>
> Ian Hickson wrote:
>> On Sun, 23 Apr 2006, Boris Zbarsky wrote:
>>>> - FireFox *does* return null if the document is sent as text/html
>>> Or anything else that doesn't look like an XML MIME type.
>> Personally I'd quite like responseXML to return a Document if the  
>> content is text/html, since it can just as easily be parsed into a  
>> DOM as XML can.
>
> This, unfortunately, strays from the stated goal of specifying  
> "what works". I guess we should discuss at some point if we want to  
> keep that goal or not.

I'd propose that handling HTML should be an XHR 2.0 feature.

Regards,
Maciej
Received on Thursday, 27 April 2006 00:52:50 GMT

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