W3C home > Mailing lists > Public > public-webapi@w3.org > May 2008

Re: setRequestHeader / Accept

From: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 26 May 2008 08:03:00 +0200
Message-ID: <483A5294.5070601@gmx.de>
To: Anne van Kesteren <annevk@opera.com>
CC: Laurens Holst <lholst@students.cs.uu.nl>, public-webapi@w3.org

Anne van Kesteren wrote:
>> Or are you claiming that people who set a header to null *really* want 
>> the specified behaviour?
> It's consistent with other JavaScript APIs were null also means "null".
> Overloading this API to also do removal of the header is not a goal here 
> and is simply a bug in Firefox as it also does that for the empty string 
> value (Firefox simply treats null identically to the empty string, where 
> other browsers treat it identically to "null".

If you don't want to specify removal, then make it either undefined 
behavior, or specify that an exception must be thrown.

It's all better than to let something on the wire that the caller of the 
API didn't want there in the first place.

BR, Julian
Received on Monday, 26 May 2008 06:03:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:27 UTC