W3C home > Mailing lists > Public > public-webapi@w3.org > November 2007

Re: [XHR] i18n comment 8: content negotiation handling

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 29 Nov 2007 18:16:28 +0100
To: addison@yahoo-inc.com, public-webapi@w3.org, public-i18n-core@w3.org
Message-ID: <op.t2kcxqh164w2qv@annevk-t60.oslo.opera.com>

On Thu, 29 Nov 2007 17:14:10 +0100, <addison@yahoo-inc.com> wrote:
> Comment:At the end of the section on the send method, this para appears:
> --
> If the user agent implements server-driven content-negotiation it should  
> set Accept-Language, Accept-Encoding and Accept-Charset headers as  
> appropriate; it must not automatically set the Accept header. Responses  
> to such requests must have the content-encodings automatically decoded.  
> [RFC2616]
> --
>
> The Accept-Language header is currently the only mechanism available in  
> XHR for locale management. It may be important for locale-sensitive  
> interactions to convey a language or locale to the server. Thus, it  
> would be useful to separately mention the Accept-Language header and its  
> use in informing the server of language/locale preference. In addition,  
> we suggest you recommend the use of the BCP 47\'s Lookup algorithm(found  
> in the RFC 4647 portion of BCP 47) for matching the A-L header.

I think it actually makes sense to require user agents to not set the  
Accept-Language as appropriate so that content authors can do that. Making  
encoding as transparant as possible from the author point of view makes  
sense, but language doesn't really.

I'm going to make a change that will give Accept-Language identical  
treatment to Accept.


> Note: the normative words "should", "must not", and "must" all appear in  
> non-normative form.

That's because you copy and paste in a way that does not preserve markup.  
(I sense an i18n issue here! ;-))


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 29 November 2007 17:16:09 GMT

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