Re: Accept header setting in XHR

On Tue, 25 Aug 2009 19:06:27 +0200, Peter Michaux <petermichaux@gmail.com>  
wrote:
> I am looking at the current Working Draft of the XHR spec at the end
> of section 4.6.3
>
> http://www.w3.org/TR/XMLHttpRequest/#the-send-method
>
> "Unless set through setRequestHeader() user agents should set the
> Accept and Accept-Language headers as well."
>
> This doesn't specify what the user agent should/must do in the case
> where the Accept header is set through setRequestHeader(). In my
> opinion something like the following would be better.
>
> "If Accept is set through setRequestHeader(), user agents must not
> set, append or otherwise modify the Accept header. If the Accept
> header is not set thorugh setRequestHeader(), user agents should set
> the Accept header. Same for the Accept-Language header."
>
> I think avoiding the word "Unless" would also be an improvement as it
> is clearer to just use "If".

Fixed (in a somewhat different way). Thanks!


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Thursday, 8 October 2009 14:38:18 UTC