W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

Re: XHR LC comment: header encoding

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 05 Jan 2010 11:03:21 +0100
To: "Jonas Sicking" <jonas@sicking.cc>
Cc: "Boris Zbarsky" <bzbarsky@mit.edu>, "Julian Reschke" <julian.reschke@gmx.de>, "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.u510vvhu64w2qv@annevk-t60>
On Tue, 05 Jan 2010 08:39:26 +0100, Anne van Kesteren <annevk@opera.com>  
wrote:
> On Tue, 05 Jan 2010 08:29:53 +0100, Jonas Sicking <jonas@sicking.cc>  
> wrote:
>> At the very least, throwing if the upper byte is non-zero seems like
>> the right thing to do to prevent silent data loss.
>
> That works for me.

More concretely, this means that combined with the rules coming from HTTP  
a SYNTAX_ERR exception would be raised for the value argument if one of  
the characters has a code point larger than U+00FF, if the code point is  
U+007F, or if the code point is smaller than U+0020 but is not U+0009. If  
this is all ok the lower bytes are collected as the new header value.

Does this sound acceptable to implementors?


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 5 January 2010 10:03:57 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:36 GMT