Re: XHR LC comment: header encoding

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 UTC