Re: [XHR] Status Update

On 09.08.2010 22:25, Anne van Kesteren wrote:
> On Mon, 09 Aug 2010 20:54:48 +0200, Jonas Sicking <jonas@sicking.cc> wrote:
>> Some of these bugs are feature enhancements. Such as adding support
>> for sending and receiving text/html documents. In the interest of
>> getting us to rec as quickly as possible I suggest that these features
>> are added to XHR L2 instead.
>
> Actually, by virtue of following the Document.innerHTML algorithm from
> HTML5 sending HTML documents is already covered for in XMLHttpRequest.
> It is just that the media type (as the bug indicates) is always set to
> application/xml rather than text/html for HTML documents.
>
> Receiving HTML documents would indeed be a newish feature, except that
> you already need to follow HTML5 rules to discover the character
> encoding for responseText, etc. so adding this did not seem like a big
> burden on implementations on top of which it makes sense that if you can
> send them (which was already possible) you can also receive them.
> ...

I sure hope nobody follows HTML5 for the encoding detection :-). See 
<http://www.w3.org/Bugs/Public/show_bug.cgi?id=9628>, raised over three 
months ago.

Best regards, Julian

Received on Tuesday, 10 August 2010 14:50:14 UTC