Re: XHR: responseText encoding detection

On Wed, 30 May 2007 09:44:41 +0200, Alexey Proskuryakov  
<ap-carbon@rambler.ru> wrote:
> It turned out that there is already some code (Dashboard widgets) that
> relies on Http-Equiv METAs being honored by XMLHttpRequest. This worked  
> in shipping Safari/WebKit by accident: all XHR content was passed  
> through an
> XML/HTML decoder.

So you're saying that for responseText you do indeed adhere to the  
text/html rules?


> So, it seems that we need to decode text/html according to its normal
> rules. This can be made a quirk for Dashboard, but since it makes  
> long-term sense for HTML5, maybe it is a good behavior to specify.
>
> For most browsers, it would be a change in behavior, so I guess the
> biggest question is what other browser makers think about it.

Yeah. Opera does this for text/css as well, for what it's worth.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Wednesday, 30 May 2007 08:05:32 UTC